Documentation ¶
Overview ¶
Package util contains several utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChildPath ¶
ChildPath returns the child path with respect to the base directory or returns an error if the target directory is not a child of the base directory.
func PathEvalAbs ¶
PathEvalAbs returns the absolute path for a directory after evaluating symlinks.
func PtrVal ¶
func PtrVal[T any](v *T) T
PtrVal returns the value of the given pointer. If the provided input is nil, it returns the zero value for the pointer's underlying type.
func SortedMapKeys ¶
SortedMapKeys returns the sorted slice of map key strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.