package main
import "fmt"
func main() {
fmt.Println("Hello world")
}
package main
- default package declarationimport "fmt"
- loadsfmt
package to operate on strings (and print them)func main() {
- declaremain
function that will be launched automaticallyfmt.Println
- prints specified string"Hello world"
- string to print
package main
import "fmt"
func main() {
fmt.Println("Hello world")
}
Hello world