17 lines
199 B
Go
17 lines
199 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
x := "Hello literal" // `x := val` is shorthand for `var x type = val`.
|
|
fmt.Println(x)
|
|
}
|
|
|
|
/*
|
|
$ go run literal.go
|
|
Hello literal
|
|
*/
|
|
|
|
// == todo
|
|
// literal?
|