This commit is contained in:
comlibmb
2026-01-15 08:52:13 +08:00
commit d5663d1a0f
2 changed files with 29 additions and 0 deletions

3
go.mod Normal file
View File

@@ -0,0 +1,3 @@
module hello
go 1.25.4

26
main.go Normal file
View File

@@ -0,0 +1,26 @@
package main
import "fmt"
func main() {
fmt.Println("Hello, world")
fmt.Println(a, b, PI)
arr[3] = 4
fmt.Println(arr)
fmt.Println(m)
}
var a int = 10
var b = 20
// d := 30
const PI = 3.14
var arr = [4]int{1,2,3}
// var arr = {1,3,4,5}
var m = map[string]int{
"apple": 1,
"banana": 2,
"cherry": 3,
}