utils

package
v0.0.0-...-47e3ba9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(src string, dst string) error

CopyDir copy directory from src to dst.

func CopyFile

func CopyFile(src, dst string) error

CopyFile copy a single file.

func DecodeValue

func DecodeValue(value []byte, dest interface{}) (err error)

DecodeValue decode value to dest.

func EncodeKey

func EncodeKey(key interface{}) (res []byte, err error)

EncodeKey returns key in bytes.

func EncodeValue

func EncodeValue(value interface{}) (res []byte, err error)

EncodeValue returns value in bytes.

func Exist

func Exist(path string) bool

Exist check if the directory or file exists.

func Float64ToStr

func Float64ToStr(val float64) string

Float64ToStr Convert type float64 to string

func StrToFloat64

func StrToFloat64(val string) (float64, error)

StrToFloat64 convert type string to float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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