所以我的代码中有这一行:base := build.Default.GOPATH + "/src/github.com/skuzzymiglet/point/"
后来,我这样使用它:script, err := ioutil.ReadFile(base + "script.js")
这样做的问题是,如果有人 fork 我的 repo,它将引用我的 Assets 而不是他们的 Assets ,并可能最终出现错误。
我应该如何解决这个问题?
最佳答案
it will reference my assets not theirs, and possibly end up with an error.
然后:
关于git - 为 Git fork 更新 go Assets 路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60345364/