strs

package
v0.0.0-...-6302c98 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2Str

func Bytes2Str(b []byte) string

func LcFirst

func LcFirst(str string) string

func LengthUnicode

func LengthUnicode(str string) int

func Object2String

func Object2String(obj interface{}) string

func Str2Bytes

func Str2Bytes(s string) []byte

func Substr

func Substr(str string, start, length int) string

start:正数 - 在字符串的指定位置开始,超出字符串长度强制把start变为字符串长度

负数 - 在从字符串结尾的指定位置开始
0 - 在字符串中的第一个字符处开始

length:正数 - 从 start 参数所在的位置返回

负数 - 从字符串末端返回

func ToString

func ToString(value interface{}) string

ToString 将interface转成string

func UrlParse

func UrlParse(url string) (string, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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