xstrings

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2str

func Bytes2str(b []byte) string

Bytes2str convert array of byte to string

func ClearByteMemory

func ClearByteMemory(src []byte)

ClearByteMemory clear byte memory, for very sensitive security related data you should clear it in memory after use

func ClearStringMemory

func ClearStringMemory(src *string)

ClearStringMemory clear string memory, for very sensitive security related data //you should clear it in memory after use

func HasPrefix

func HasPrefix(key, pre, delimiter string) bool

func MinInt

func MinInt(x, y int) int

MinInt check the minimum value of two integers

func SplitFirstSep

func SplitFirstSep(s, sep string) string

SplitFirstSep split the string

func SplitToTwo

func SplitToTwo(s, sep string) (string, string)

SplitToTwo split the string

func Str2bytes

func Str2bytes(s string) []byte

Str2bytes convert string to array of byte

func StrInSlice

func StrInSlice(a string, list []string) bool

StrInSlice convert string to bool

func StrToCamelCase

func StrToCamelCase(s string) string

StrToCamelCase converts from underscore separated form to camel case form.

func StrToLowerFirstCamelCase

func StrToLowerFirstCamelCase(s string) string

ToLowerFirstCamelCase returns the given string in camelcase formatted string but with the first letter being lowercase.

func StrToLowerSnakeCase

func StrToLowerSnakeCase(s string) string

StrToLowerSnakeCase the given string in snake-case format.

func StrToSnakeCase

func StrToSnakeCase(s string) string

StrToSnakeCase converts from camel case form to underscore separated form.

func StrToUpperFirst

func StrToUpperFirst(s string) string

StrToUpperFirst returns the given string with the first letter being uppercase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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