Skip to content

Instantly share code, notes, and snippets.

@c1982
Created October 28, 2019 08:03
no-global-var
package main
var levels = []string{"LVL1","LVL2","LVL3"}
func main(){
fmt.Println(levels)
}
package main
func levels() []string{
return []string{"LVL1","LVL2","LVL3"}
}
func main(){
fmt.Println(levels())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment