Documentation
¶
Index ¶
- func AsPtr[T any](value T) *T
- func FileExists(filepath string) bool
- func FileReaderRead(fileName string) (string, error)
- func GetLineByPosition(filePath string, position int) int
- func GetPathWithOnlyFilename(path string) (string, error)
- func GetPathWithoutFilename(path string) (string, error)
- func GlogToRegex(glog string) string
- func InArray(needle string, haystack []string) bool
- func IsPrimitiveType(v string) bool
- func IsReadable(filepath string) bool
- func IsStruct(object *ast.Object) bool
- func IsWriteable(path string) bool
- func Map[T1 comparable, T2, V any](ts map[T1]T2, fn func(T1, T2) V) []V
- func MapKeyExists[Key comparable, Value any](v map[Key]Value, k Key) bool
- func MapKeyIsArrayOfStrings[Key comparable](v map[Key]interface{}, k Key) bool
- func MapKeyIsInt[Key comparable](v map[Key]interface{}, k Key) bool
- func MapKeyIsString[Key comparable](v map[Key]interface{}, k Key) bool
- func MapSlice[T, V any](ts []T, fn func(T) V) []V
- func ParseYamlFile(file string) (map[string]interface{}, error)
- func PathCanonicalize(path string) string
- func PathNormalize(path string) string
- func Sha1File(path string) (string, error)
- func SplObjectID(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FileReaderRead ¶
func GetLineByPosition ¶
func GetPathWithOnlyFilename ¶
func GetPathWithoutFilename ¶
func GlogToRegex ¶
func IsPrimitiveType ¶
func IsReadable ¶
func IsWriteable ¶
func Map ¶
func Map[T1 comparable, T2, V any](ts map[T1]T2, fn func(T1, T2) V) []V
func MapKeyExists ¶
func MapKeyExists[Key comparable, Value any](v map[Key]Value, k Key) bool
func MapKeyIsArrayOfStrings ¶
func MapKeyIsArrayOfStrings[Key comparable](v map[Key]interface{}, k Key) bool
func MapKeyIsInt ¶
func MapKeyIsInt[Key comparable](v map[Key]interface{}, k Key) bool
func MapKeyIsString ¶
func MapKeyIsString[Key comparable](v map[Key]interface{}, k Key) bool
func ParseYamlFile ¶
func PathCanonicalize ¶
func PathNormalize ¶
func SplObjectID ¶
func SplObjectID(v interface{}) string
Types ¶
This section is empty.
Source Files
¶
- as_ptr.go
- file_exists.go
- file_reader.go
- get_line_by_position.go
- get_path_with_only_filename.go
- get_path_without_filename.go
- glob_to_regex.go
- in_array.go
- is_primitive_type.go
- is_readable.go
- is_struct.go
- is_writeable.go
- map.go
- map_key_exists.go
- map_key_is_array_of_strings.go
- map_key_is_int.go
- map_key_is_string.go
- parse_yaml_file.go
- path_canonicalize.go
- path_normalize.go
- sha1file.go
- spl_object_id.go
Click to show internal directories.
Click to hide internal directories.