// GetPath returns the Path field if it's non-nil, zero value otherwise.
352969
func (r *RepositoryComment) GetPath() string {
	if r == nil || r.Path == nil {
		return ""
	}
	return *r.Path
}
1268344
func (custom *GoCustomizations) getGoPath() (string, string) {
	fakeGoPath := filepath.Join(custom.paths.TmpDir, "gopath")
	if custom.Configuration.GoPath == "" {
		return fakeGoPath, fakeGoPath
	}
	return custom.Configuration.GoPath, fakeGoPath
}
978886
func GetPath(mounter volume.Mounter) (string, error) {
	path := mounter.GetPath()
	if path == "" {
		return "", fmt.Errorf("Path is empty %s", reflect.TypeOf(mounter).String())
	}
	return path, nil
}
1122633
func (pg *GoEvtxMap) GetMap(path *GoEvtxPath) (*GoEvtxMap, error) {
	if len(*path) > 0 {
		if ge, ok := (*pg)[(*path)[0]]; ok {
			if len(*path) == 1 {
				return pg, nil
			}
			switch ge.(type) {
			case GoEvtxMap:
				p := ge.(GoEvtxMap)
				np := (*path)[1:]
				return p.GetMap(&np)
			}
		}
	}
	return nil, &ErrEvtxEltNotFound{*path}
}
149136
func (v *Value) getPath(keys []string) (*Value, error) {
	current := v
	var err error
	for _, key := range keys {
		current, err = current.get(key)

		if err != nil {
			return nil, err
		}
	}
	return current, nil
}
50021
func GetRealPath(fs afero.Fs, path string) (string, error) {
	_, realPath, err := getRealFileInfo(fs, path)

	if err != nil {
		return "", err
	}

	return realPath, nil
}
316200
func (c Config) GetIndexPath(base string) string {
	if c.IndexPath != "" {
		return c.IndexPath
	}
	return filepath.Join(base, DefaultIndexDirectoryName)
}
104896
func Get(path, name string) ([]byte, error) {
	return get(path, name, func(name string, data []byte) (int, error) {
		return getxattr(path, name, data)
	})
}
709888
func (c ConnAdapter) Get(path string) ([]byte, *zk.Stat, error) {
	return c.GetF(path)
}
969509
func Get(path string, h interface{}, m ...interface{}) {
	Default.Get(path, h, m...)
}
125147
func GetNodeFromPath(path string) string {
	if idx := strings.LastIndex(path, PATH_SEPARATOR); idx < 0 {
		return path
	} else if idx+1 >= len(path) {
		return ""
	} else {
		return path[idx+1:]
	}
}
794265
func (fi *fieldInfo) getField(a reflect.Value) reflect.Value {
	i := 0
	for ; i < len(fi.path)-1; i++ {
		a = indirect(a.Field(fi.path[i]))
	}
	return a.Field(fi.path[i])
}
669600
func (l *PublicPortListener) GetPath(nodes ...string) string {
	parts := append([]string{"/net/pub", l.hostID}, nodes...)
	return path.Join(parts...)
}
189364
func (v *Object) GetString(keys ...string) (string, error) {
	child, err := v.getPath(keys)

	if err != nil {
		return "", err
	} else {
		return child.String()
	}
}
156731
func (pg *GoEvtxMap) Get(path *GoEvtxPath) (*GoEvtxElement, error) {
	if len(*path) > 0 {
		if i, ok := (*pg)[(*path)[0]]; ok {
			if len(*path) == 1 {
				cge := GoEvtxElement(i)
				return &cge, nil
			}
			switch i.(type) {
			case GoEvtxMap:
				p := i.(GoEvtxMap)
				np := (*path)[1:]
				return p.Get(&np)
			case map[string]interface{}:
				p := GoEvtxMap(i.(map[string]interface{}))
				np := (*path)[1:]
				return p.Get(&np)
			}
		}
	}
	return nil, &ErrEvtxEltNotFound{*path}
}
205708
func (r *RepositoryLicense) GetPath() string {
	if r == nil || r.Path == nil {
		return ""
	}
	return *r.Path
}
827442
func GetBasePath() (string, error) {
	p, _ := build.Default.Import(basePackage, "", build.FindOnly)
	if p != nil && len(p.Dir) > 0 {
		return p.Dir, nil
	}

	return os.Getwd()
}