stringutil

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 5

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 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 StringInSlice

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

StringInSlice convert string to bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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