Skip to content

Instantly share code, notes, and snippets.

@tomtsang
Created February 16, 2018 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomtsang/09dd8e6b5b3d5eeb2d3118bcf26db1d0 to your computer and use it in GitHub Desktop.
Save tomtsang/09dd8e6b5b3d5eeb2d3118bcf26db1d0 to your computer and use it in GitHub Desktop.
assign.go
package main
import (
"fmt"
)
func main() {
power := 1000
fmt.Printf("default power is %d\n", power)
name, power := "Goku", 9000
fmt.Printf("%s's power is over %d\n", name, power)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment