✨Feat: 函数声明

This commit is contained in:
2025-12-29 16:02:42 +08:00
parent 9b5169b78b
commit 1f8e8e006e
+5
View File
@@ -5,6 +5,11 @@ import (
"math"
)
func add(x int, y int) int {
return x + y
}
func main() {
fmt.Println("You know Pi =", math.Pi)
fmt.Println("And You know 1+2 =", add(1, 2))
}