commonUtils

package
v0.0.0-...-b92f783 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(pathStr string) string

func BoolToPass

func BoolToPass(b bool) string

func ChanePrecision

func ChanePrecision(value float64, precision int) float64

func GetFieldVal

func GetFieldVal(config model.Config, key string) string

func GetIp

func GetIp() string

func GetIpType

func GetIpType(IP net.IP) string

func GetOs

func GetOs() string

func GetType

func GetType(i interface{}) string

func IgnoreFile

func IgnoreFile(path string) bool

func IsLinux

func IsLinux() bool

func IsMac

func IsMac() bool

func IsRelease

func IsRelease() bool

func IsRunAsBackendProcess

func IsRunAsBackendProcess() (found bool)

func IsWin

func IsWin() bool

func LinkedMapToMap

func LinkedMapToMap(mp maps.Map) map[string]string

func NewSliceValue

func NewSliceValue(vals []string, p *[]string) *sliceValue

func RandNum

func RandNum(length int) int

func RandNum64

func RandNum64(length int64) int64

func RemoveBlankLine

func RemoveBlankLine(str string) string

func SetFieldVal

func SetFieldVal(config *model.Config, key string, val string) string

func UpdateUrl

func UpdateUrl(url string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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