strings

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 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 any, sep string) string

JoinToString 数组加分隔符号转string

func UnsafeToBytes added in v0.1.11

func UnsafeToBytes(s string) []byte

UnsafeToBytes 高性能转换

Types

type Charset

type Charset string

Jump to

Keyboard shortcuts

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