Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountBinary added in v0.1.7

func ByteCountBinary(b int64) string

func ByteCountDecimal added in v0.1.7

func ByteCountDecimal(b int64) string

func ConvertArrIntToArrString added in v0.1.7

func ConvertArrIntToArrString(value any) []string

func ConvertMapIntToMapString added in v0.1.7

func ConvertMapIntToMapString(value any) map[string]string

func FileCopy

func FileCopy(src, dst string) (int64, error)

FileCopy convinient method for copy a file

func FileExists

func FileExists(name string) (bool, error)

FileExists checking if a file exists

func FileNameWOExt added in v0.1.7

func FileNameWOExt(fileName string) string

func LoadYAML

func LoadYAML(file string, v any) error

LoadYAML loading a file, yaml unmarshal into a any struct

func WriteAsYaml

func WriteAsYaml(file string, v any) error

WriteAsYaml writing a any struct as yaml

Types

This section is empty.

Jump to

Keyboard shortcuts

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