write 03
This commit is contained in:
parent
867f476bd5
commit
727567971c
@ -1,8 +1,12 @@
|
|||||||
|
// # Variables
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var x string = "Hello World"
|
var x string = "Hello world" // `var` declares 1 or more variables. The ype comes
|
||||||
fmt.Println(x)
|
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