stringutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package stringutil is deprecated, plz use github.com/go-chassis/foundation/stringutil instead

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2str

func Bytes2str(b []byte) string

Deprecated Bytes2str convert array of byte to string Deprecated: use github.com/go-chassis/foundation/stringutil

func ClearByteMemory

func ClearByteMemory(src []byte)

Deprecated ClearByteMemory clear byte memory, for very sensitive security related data you should clear it in memory after use Deprecated: use github.com/go-chassis/foundation/stringutil

func ClearStringMemory

func ClearStringMemory(src *string)

Deprecated ClearStringMemory clear string memory, for very sensitive security related data you should clear it in memory after use Deprecated: use github.com/go-chassis/foundation/stringutil

func MinInt

func MinInt(x, y int) int

Deprecated MinInt check the minimum value of two integers Deprecated: use github.com/go-chassis/foundation/stringutil

func SplitFirstSep

func SplitFirstSep(s, sep string) string

Deprecated SplitFirstSep split the string Deprecated: use github.com/go-chassis/foundation/stringutil

func SplitToTwo

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

Deprecated SplitToTwo split the string Deprecated: use github.com/go-chassis/foundation/stringutil

func Str2bytes

func Str2bytes(s string) []byte

Deprecated Str2bytes convert string to array of byte Deprecated: use github.com/go-chassis/foundation/stringutil

func StringInSlice

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

Deprecated StringInSlice convert string to bool Deprecated: use github.com/go-chassis/foundation/stringutil

Types

This section is empty.

Jump to

Keyboard shortcuts

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