strings

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 5 Imported by: 1

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 高性能转换

func ToString added in v0.1.6

func ToString(b []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