code: func GetRootPath(name string) string {
  	for prefix, num := range setting.RootPathPairs {
  		if strings.HasPrefix(name, prefix) {
  			return joinPath(name, num)
  		}
  	}
  
  	if strings.HasPrefix(name, "gopkg.in") {
  		m := gopkgPathPattern.FindStringSubmatch(strings.TrimPrefix(name, "gopkg.in"))
  		if m == nil {
  			return name
  		}
  		user := m[1]
  		repo := m[2]
  		return path.Join("gopkg.in", user, repo+"."+m[3])
  	}
  	return name
  }
docs: // GetRootPath returns project root path.