9951 explained code solutions for 126 technologies


golangHello world example


package main
import "fmt"

func main() {
  fmt.Println("Hello world")
}ctrl + c
package main

default package declaration

import "fmt"

loads fmt package to operate on strings (and print them)

func main() {

declare main function that will be launched automatically

fmt.Println

prints specified string

"Hello world"

string to print