strings

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ConvertByte2String

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

func Escape added in v0.1.2

func Escape(reverse ...bool) *strings.Replacer

func EscapeString added in v0.1.2

func EscapeString(str string, reverse ...bool) string

func EscapeStringRepeat added in v0.1.2

func EscapeStringRepeat(str string, repeat int, reverse ...bool) string

func JoinToString

func JoinToString(elems interface{}, sep string) string

JoinToString 数组加分隔符号转string

func ToBytes

func ToBytes(s string) []byte

ToBytes 高性能转换

Types

type Charset

type Charset string

Jump to

Keyboard shortcuts

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