helper

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(source, target string) error

func CopyFiles

func CopyFiles(source, target string) error

func FindDocuments

func FindDocuments(path string) ([]string, error)

func GetFreePort added in v0.8.0

func GetFreePort() (int, error)

func IsDir

func IsDir(elem string) bool

func IsDocument

func IsDocument(path string) bool

func IsExist

func IsExist(path string) bool

func IsFile

func IsFile(path string) bool

func Join added in v0.9.0

func Join(elem ...string) string

func MakeIdGenerator added in v0.8.0

func MakeIdGenerator(prefix string) func() string

func ParseJson

func ParseJson(data []byte, out any) error

func ParseYaml

func ParseYaml(data []byte, out any) error

func ReadDocument

func ReadDocument(path string, v any) error

func ReadYamlFromData

func ReadYamlFromData(in []byte, out any) error

func WriteDocument

func WriteDocument(path string, v any) error

func YamlToJson

func YamlToJson(in []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL