logo-MindMajix
PostGoLangGoLang
J
James ROBERT

Posted on 23rd June 2024|16 views

0
votes

Golang Init Function

Explain about init function in Go

1 answers
Answers
P
Anusha V

Posted on 23rd June 2024| views

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
Name
Course *
Email *
Phone Number