package main import ( "fmt" "packages/myutils" // 导入自定义包 ) func main() { // 调用外部包中的函数 myutils.Greet("Gopher") fmt.Println("包导入和使用示例") }