Documentation
¶
Index ¶
- func BoolPtr(value bool) *bool
- func CloneStringMap(items map[string]string) map[string]string
- func ContainsPathSeparator(value string) bool
- func DerefString(value *string) string
- func DirExists(path string) bool
- func Expand(path string) (string, error)
- func ExpandPathOrRaw(path string) string
- func FileExists(path string) bool
- func FirstNonEmptyString(values ...string) string
- func GlobalProxyDisabled(noProxy bool) bool
- func GlobalProxyDisabledWithEnv(noProxy bool, envNoProxy string) bool
- func Home() (string, error)
- func IsDirectory(path string) bool
- func NormalizeSlashesLower(value string) string
- func StringPtr(value string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneStringMap ¶ added in v1.7.4
func ContainsPathSeparator ¶ added in v1.5.1
func DerefString ¶ added in v1.5.1
func Expand ¶
Expand takes a path as input and replaces ~ at the start of the path with the user's home directory. Does nothing if the path does not start with '~'.
func ExpandPathOrRaw ¶ added in v1.7.4
func FileExists ¶ added in v1.7.4
func FirstNonEmptyString ¶ added in v1.7.4
func GlobalProxyDisabled ¶ added in v1.7.6
func GlobalProxyDisabledWithEnv ¶ added in v1.7.7
func IsDirectory ¶ added in v1.5.1
func NormalizeSlashesLower ¶ added in v1.5.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.