Versions in this module Expand all Collapse all v1 v1.0.1 Mar 21, 2022 v1.0.0 Mar 20, 2022 Changes in this version + var DigitRegex = regexp.MustCompile(`\d`) + var EmailRegex = regexp.MustCompile(...) + func B2S(b []byte) string + func BytesPad(input []byte, padLength int, padData []byte, rightPad bool) (output []byte) + func BytesPadSingle(input []byte, padLength int, pad byte, rightPad bool) (output []byte) + func BytesUnPadSingle(input []byte, pad byte, rightPad bool, copyData bool) (output []byte) + func CamelToUnderscore(s string) string + func FileSize(s uint64) string + func FileSizeIEC(s uint64) string + func FillByte(dst []byte, pattern byte) + func FillBytes(dst []byte, pattern []byte) + func FormatIntToBytes(number int) (out []byte) + func FormatIntToBytesReversed(number int) (out []byte) + func FormatIntToString(number int) (out string) + func FormatIntToStringReversed(number int) (out string) + func FormatUnsignedIntToBytes(sign bool, number uint) (out []byte) + func FormatUnsignedIntToBytesReversed(sign bool, number uint) (out []byte) + func FormatUnsignedIntToString(sign bool, number uint) (out string) + func FormatUnsignedIntToStringReversed(sign bool, number uint) (out string) + func MaskText(src string) (val string) + func ParseBytesToInt(in []byte) (number int) + func ParseStringToInt(in string) (number int) + func PasswordCheck(source []byte, minLength int, condition ...*regexp.Regexp) (invalid bool) + func RandomDigits(digitLength, limit int) string + func Reverse(s string) string + func StrPad(input string, padLength int, padString string, rightPad bool) (output string) + func StrPadSingle(input string, padLength int, pad byte, rightPad bool) (output string) + type LineBreaker struct + Out io.Writer + func (l *LineBreaker) Close() (err error) + func (l *LineBreaker) Write(b []byte) (n int, err error)