Lines Matching refs:pkgPrefix
98 func (c *Config) Map(pkgPrefix, pathPrefix string) error {
102 if _, ok := c.paths[pkgPrefix]; ok {
103 return fmt.Errorf("Duplicate package prefix: %q", pkgPrefix)
106 c.pkgs = append(c.pkgs, pkgPrefix)
107 c.paths[pkgPrefix] = pathPrefix
120 for _, pkgPrefix := range c.pkgs {
121 if pkg == pkgPrefix {
122 return c.paths[pkgPrefix], true, nil
123 } else if strings.HasPrefix(pkg, pkgPrefix+"/") {
124 return filepath.Join(c.paths[pkgPrefix], strings.TrimPrefix(pkg, pkgPrefix+"/")), true, nil
684 pkgPrefix := strings.TrimSuffix(value[:equalPos], "/")
687 return p.Map(pkgPrefix, pathPrefix)