File Structure
Here is a sample GO file structure. Mainly, three components
Define Package Name
Import other packages that we used in the project
Declare Functions along with logic
For reference here is the sample file structure diagram
declaration
explaination
package main
Package declaration
import "fmt"
Import other packages that we need
func main() { fmt.Println("hi there") }
Declare functions, tell Go to do things
Last updated