Post

GoLangGoLang

J
James ROBERT

Posted on 27th February 2024|11 views

0
votes

Golang Init Function

Explain about init function in Go

Answers
P
Anusha V

Posted on 27th February 2024

Init function is similar to the main function. It is called when we have to initialize a package.

Example:

func init()
{
Statements
}


 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos