conv

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TrueStrs = []string{"1", "true", "on", "yes"}

Functions

func BytesToStr

func BytesToStr(b []byte) string

BytesToStr []byte转string.

func Contains

func Contains(str string, s []string) bool

Contains 判断字符串是否存在切片中.

func IsDigitOrLetter added in v1.4.2

func IsDigitOrLetter(s string) bool

func StrToBytes

func StrToBytes(str string) []byte

StrToBytes string转[]byte.

func StringReplaceIgnoreCase

func StringReplaceIgnoreCase(text, source, target string) string

StringReplaceIgnoreCase 忽略大小写替换字符串.

func ToBool added in v1.4.5

func ToBool(str string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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