stringutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

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 BytesToStringWithNoCopy

func BytesToStringWithNoCopy(bytes []byte) string

BytesToStringWithNoCopy convert array of byte to string

func ClearByteMemory

func ClearByteMemory(src []byte)

ClearByteMemory clear byte memory

func ClearStringMemory

func ClearStringMemory(src *string)

ClearStringMemory clear string memory

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

func StringToBytesWithNoCopy

func StringToBytesWithNoCopy(s string) []byte

StringToBytesWithNoCopy convert string to byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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