str

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Black = iota + 30
	Red
	Green
	Yellow
	Blue
	Purple
	Cyan
	White
)

Variables

This section is empty.

Functions

func ColorText

func ColorText(color int, str string) string

func ConvertUnderline

func ConvertUnderline(str string) string

ConvertUnderline 将字符串转为下划线形式. eg: Input HelloWorld return hello_world

func Format

func Format(str string, params ...any) string

func IntToStr

func IntToStr(i int) string

func IsEmpty

func IsEmpty(str string) bool

func IsNotEmpty

func IsNotEmpty(str string) bool

func NewBuffer

func NewBuffer() strBuffer

func SubString

func SubString(str string, startIndex, endIndex int) string

func ToBytes

func ToBytes(str string) []byte

func ToFloat

func ToFloat(s string) float64

func ToInt

func ToInt(str string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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