str

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ellipsis

func Ellipsis(text string, length int) string

func HasChinese

func HasChinese(str string) bool

func IsGBK

func IsGBK(data []byte) bool

func Join

func Join(strs ...string) string

连接字符串

func StructToMap

func StructToMap(obj interface{}) map[string]interface{}

StructToMap 利用反射将结构体转化为map

Types

type StringArray

type StringArray string

func (StringArray) MarshalJSON

func (r StringArray) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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