Documentation
¶
Index ¶
- func DeepClone(v any) (any, error)
- func Ext(path string) string
- func FilterList(l []any, filter func(any) ([]any, error)) ([]any, error)
- func FilterMap(m map[string]any, filter func(string, any) (map[string]any, error)) (map[string]any, error)
- func GetMapBoolValue(m map[string]any, k string) (bool, bool)
- func GetMapIntValue(m map[string]any, k string) (int, bool)
- func HasListMapBoolValue(l []any, k string, v bool) bool
- func HasMapBoolValue(m map[string]any, k string, v bool) bool
- func IsStdin(path string) bool
- func MakePathsAbsolute(paths []string, workingDir string) ([]string, error)
- func PopListMapBoolValue(l []any, k string, v bool) (bool, []any, error)
- func PopListMapValue(l []any, k string) (any, []any, error)
- func PopListString(l []any, v string) (bool, []any)
- func PopMapBoolValue(m map[string]any, k string, v bool) (bool, map[string]any)
- func PopMapValue(m map[string]any, k string) (bool, any, map[string]any)
- func PreparePathsForParser(paths []string, rootPath string, workingDir string) ([]string, error)
- func RebasePathsToRoot(absPaths []string, rootPath string, workingDir string) ([]string, error)
- func SortedMap[Map ~map[K]V, K cmp.Ordered, V any](m Map) iter.Seq2[K, V]
- func ToBool(a any) (bool, bool)
- func ToInt(a any) (int, bool)
- func ToString(a any) string
- func ToStringList(l []any) ([]string, error)
- func ToStringListPermissive(v any) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePathsAbsolute ¶
MakePathsAbsolute converts relative paths to absolute paths using the provided working directory.
func PopMapBoolValue ¶
func PreparePathsForParser ¶
PreparePathsForParser prepares paths by making them absolute and rebasing to root.
func RebasePathsToRoot ¶
RebasePathsToRoot rebases absolute paths to be relative to the root path.
func ToStringList ¶
func ToStringListPermissive ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.