You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
344 B
Go
27 lines
344 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
const (
|
|
cnst = "Lorem"
|
|
multiline = `First Line
|
|
Second Line`
|
|
)
|
|
|
|
var variable = "ipsum"
|
|
|
|
func main() {
|
|
localVar := "dolor"
|
|
|
|
reassign := "sit"
|
|
reassign = "amet"
|
|
|
|
fmt.Println(cnst)
|
|
fmt.Println(multiline)
|
|
fmt.Println(variable)
|
|
fmt.Println(localVar)
|
|
fmt.Println(reassign)
|
|
|
|
fmt.Println("another literal")
|
|
}
|