strutil

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty   = ""
	UTF8    = Charset("UTF-8")
	GB18030 = Charset("GB18030")

	DefaultFormat = "raw"
	Base64Format  = "base64"
	HexFormat     = "hex"
)

Variables

This section is empty.

Functions

func ConvertByte2String

func ConvertByte2String(byte []byte, charset Charset) string

func FindInSlice

func FindInSlice(keyword string, slice []string) bool

func GenerateRandomString

func GenerateRandomString(upper, lower, number, symbol bool, length int) string

func Indent

func Indent(text, prefix string) string

Indent Inserts the prefix string at the beginning of each non-empty line.

func ToString

func ToString(format string, value []byte) string

Types

type Charset

type Charset string

Jump to

Keyboard shortcuts

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