GO Lang

Install visual studio  - IDE

Install go for windows  - https://go.dev/doc/install

Extentions -  Go 


Basic program-

1. Create a base directory for the app - app (say)

2. create a file called main.go

===========================

package main

import "fmt"

func main() {  

    fmt.Println("Hello World")

}

============================

go mod init app   #creates a module for app

main() -- entry point for the program

fmt - module that contains print etc

package main  - package name for main appln

Comments

Popular posts from this blog