common

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendZeroInt

func AppendZeroInt(value int) string

func Base64FromByte

func Base64FromByte(b []byte) string

func Base64FromByteToByte

func Base64FromByteToByte(b []byte) []byte

func Base64FromString

func Base64FromString(s string) string

func ClearCommaInline

func ClearCommaInline(text string) string

func ClearUnicode

func ClearUnicode(text string) string

func Contains

func Contains(path string, contain ...string) bool

func F64ToString

func F64ToString(num float64) string

func F64ToStringDyn

func F64ToStringDyn(num float64) string

func FillNumberString

func FillNumberString(size int) []string

func FillZeroFloat32

func FillZeroFloat32(size int) []float32

func Find

func Find(a []string, x string) bool

func FindInt

func FindInt(a []int64, x int64) bool

func FloatDecimal

func FloatDecimal(num float64, precision int) float64

func Format2Digit

func Format2Digit(num float64) string

func GetCodeFromName

func GetCodeFromName(str string) string

func HasCode

func HasCode(id string, index int) string

func I64ToString

func I64ToString(num int64) string

func IsDigit

func IsDigit(s string) bool

func IsEmpty

func IsEmpty(val string) bool

func IsExpired

func IsExpired(jwt string, key string) bool

func IsFloat

func IsFloat(t reflect.Type) bool

func IsInt

func IsInt(t reflect.Type) bool

func JoinInt64

func JoinInt64(source []int64, sep string) string

func Match

func Match(find string, source ...string) bool

func ParseConnectionString

func ParseConnectionString[T any](connectionString string, target *T) error

func ParseFloat32Safety

func ParseFloat32Safety(num string) float32

func ParseFloat64

func ParseFloat64(num string) (float64, error)

func ParseFloat64Safety

func ParseFloat64Safety(num string) float64

func ParseInt

func ParseInt(num string) (int, error)

func ParseInt64

func ParseInt64(num string) (int64, error)

func ParseInt64Safety

func ParseInt64Safety(num string) int64

func Rand

func Rand(min float64, max float64) float64

func RemoveDoubleQuote

func RemoveDoubleQuote(text string) string

func RemoveExtension

func RemoveExtension(filename string) string

func RemoveIndex

func RemoveIndex(s []interface{}, index int) []interface{}

func Round

func Round(num float64) int

func SplitDash

func SplitDash(input string) []string

func ToFloat64

func ToFloat64(value interface{}) float64

func TrimLower

func TrimLower(text string) string

func TrimToLower

func TrimToLower(text 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