util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.8.0

func CopyFile(from string, to string) (int64, error)

func CreateBaseDir added in v0.5.0

func CreateBaseDir(path string) error

func DeleteDir added in v0.8.0

func DeleteDir(path string) error

func DeleteFile added in v0.8.0

func DeleteFile(path string) error

func EncodeJson added in v0.5.0

func EncodeJson(data interface{}) (string, error)

func EncodeJsonIndent added in v0.5.0

func EncodeJsonIndent(data interface{}) (string, error)

func EncodeYaml added in v0.5.0

func EncodeYaml(data interface{}) (string, error)

func FindOpenPort added in v0.6.0

func FindOpenPort(port string) (string, error)

func IotaToValues added in v0.8.0

func IotaToValues[T comparable](kv map[T]string) []string

func RandomAlphanumeric added in v0.9.0

func RandomAlphanumeric(size int) string

func ReadFile added in v0.5.0

func ReadFile(path string) (string, error)

func SplitKeyValue added in v0.9.0

func SplitKeyValue(kv string) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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