我想在当前文件中导入或打包位于目录中同一项目中的其他文件。我这样做:
import (
// "./dir1"
"/Users/my_name/my_project/dir1"
)
它们都不起作用
1) Cloning into '/Users/my_name/go/src/github.com/github_username/github_project'...
fatal: could not read Username for 'https://github.com': terminal prompts disabled
2) package /Users/my_name/my_project/dir1: unrecognized import path "/Users/my_name/my_project/dir1" (import path does not begin with hostname)
如何导入位于当前项目中的目录?
呼啦一阵风
慕哥9229398
九州编程
相关分类