Difference between revisions of "Package main"
Jump to navigation
Jump to search
(Created page with " {{go}}") |
|||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
+ | [[package main]] | ||
+ | [[import]] "fmt" | ||
+ | |||
+ | [[func]] main() { | ||
+ | [[defer]] [[fmt]].Println("world") | ||
+ | |||
+ | fmt.Println("hello") | ||
+ | } | ||
{{go}} | {{go}} |
Latest revision as of 15:58, 21 August 2022
package main import "fmt" func main() { defer fmt.Println("world") fmt.Println("hello") }
Go, Gorutine: go [ mod
| list
| fmt
, for
| build
| get
| version
| env | install | test
] go help
, Go template, Echo go web framework, Go packages, Blank identifier
Advertising: