utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPerm = 0755
)

Variables

This section is empty.

Functions

func Allocate

func Allocate[T any](val T) *T

func CopyFile

func CopyFile(srcFile, dstFile string) error

func CreateDirectory

func CreateDirectory(path string) error

func DataToFile

func DataToFile(filename string, data interface{}) error

func IsBinaryExist

func IsBinaryExist(name string) bool

func IsDirectoryExist

func IsDirectoryExist(path string) (isExist bool, err error)

func IsFileExist

func IsFileExist(path string) bool

func RemoveDirectory

func RemoveDirectory(path string) error

func RemoveFile

func RemoveFile(file string) error

func VersionToInt

func VersionToInt(version string) (major, minor, patch, build int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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