package main import ( "fmt" "github.com/e300l20/gotest/test" ) func main() { result := test.Add(1, 2) // ← 正确:包名.函数名 fmt.Println(result) }