鏡像自
https://github.com/beego/bee.git
已同步 2025-07-12 09:51:00 +00:00
fix #2581
此提交包含在:
@ -60,9 +60,6 @@ func GetGOPATHs() []string {
|
||||
|
||||
// IsInGOPATH checks whether the path is inside of any GOPATH or not
|
||||
func IsInGOPATH(thePath string) bool {
|
||||
if runtime.GOOS == "windows" {
|
||||
thePath = filepath.ToSlash(thePath)
|
||||
}
|
||||
for _, gopath := range GetGOPATHs() {
|
||||
if strings.Contains(thePath, filepath.Join(gopath, "src")) {
|
||||
return true
|
||||
|
新增問題並參考
封鎖使用者