stringutil

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 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

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

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

func MinInt

func MinInt(x, y int) int

Deprecated MinInt check the minimum value of two integers

func SplitFirstSep

func SplitFirstSep(s, sep string) string

Deprecated SplitFirstSep split the string

func SplitToTwo

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

Deprecated SplitToTwo split the string

func Str2bytes

func Str2bytes(s string) []byte

Deprecated Str2bytes convert string to array of byte

func StringInSlice

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

Deprecated 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