Documentation ¶
Index ¶
- func ArrayToMap[T any](m map[string]T, e []T, f func(T) string) map[string]T
- func Contains(a string, b string) bool
- func CopyDir(src, dst string) error
- func CopyFile(source, target string) error
- func Dir(path string) string
- func Ext(file string) string
- func FindDocuments(path string) ([]string, error)
- func GetFreePort() (int, error)
- func HasExt(file string, ext string) bool
- func IsDir(elem string) bool
- func IsDocument(path string) bool
- func IsExist(path string) bool
- func IsFile(path string) bool
- func Join(elem ...string) string
- func ListDir(path string)
- func MakeDir(dst string) error
- func MakeIdGenerator(prefix string) func() string
- func MakeIntIdGenerator() func() uint64
- func MapToArray[T any](m map[string]T) []T
- func Must(err error)
- func ParseJson(data []byte, out any) error
- func ParseYaml(data []byte, out any) error
- func ReadDocument(path string, v any) error
- func ReadYamlFromData(in []byte, out any) error
- func RemoveDir(dst string) error
- func WriteDocument(path string, v any) error
- func WriteFile(dst string, data []byte) error
- func YamlToJson(in []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToMap ¶ added in v0.15.6
ArrayToMap converts an array to a map using a key function
func FindDocuments ¶
func GetFreePort ¶ added in v0.8.0
func IsDocument ¶
func MakeIdGenerator ¶ added in v0.8.0
func MakeIntIdGenerator ¶ added in v0.19.0
func MakeIntIdGenerator() func() uint64
func MapToArray ¶ added in v0.15.6
MapToArray converts a map to an array
func ReadDocument ¶
func ReadYamlFromData ¶
func WriteDocument ¶
func YamlToJson ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.