12 lines
167 B
Go
12 lines
167 B
Go
// ## Inline Assignment
|
|
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
// `x := val` is shorthand for `var x type = val`.
|
|
x := "Hello assignment"
|
|
fmt.Println(x)
|
|
}
|