write 03
This commit is contained in:
parent
867f476bd5
commit
727567971c
@ -1,8 +1,12 @@
|
||||
// # Variables
|
||||
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
var x string = "Hello World"
|
||||
fmt.Println(x)
|
||||
var x string = "Hello world" // `var` declares 1 or more variables. The ype comes
|
||||
fmt.Println(x) // at the end.
|
||||
|
||||
var a, b int = 1, 2 // An example of declaring multiple ints variables.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user