Source File
paths.go
Belonging Package
golang.org/x/pkgsite/internal
func ( string) []string {
if stdlib.Contains() {
if := module.CheckImportPath(); != nil {
return nil
}
return []string{"std"}
}
var []string
for := ; != "." && != "/"; = path.Dir() {
if := module.CheckImportPath(); != nil {
continue
}
= append(, )
}
if len() == 0 {
return nil
}
if !vcsHostsWithThreeElementRepoName[[len()-1]] {
return
}
if len() < 3 {
return nil
}
return [:len()-2]
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |