stringex

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int

func Int(s string) int

func Int64

func Int64(s string) int64

func Join

func Join[T any](in []T, sep string) string

func TrimHtml

func TrimHtml(src string) string

TrimHtml 去除字符串的HTML

Types

type T

type T struct {
	// contains filtered or unexported fields
}

func Split

func Split(s, sep string, needSpace ...bool) *T

Split 切分字符串 needSpace是否保留空字符,默认false

func (*T) Float32s

func (t *T) Float32s() []float32

func (*T) Float64s

func (t *T) Float64s() []float64

func (*T) Int64s

func (t *T) Int64s() []int64

func (*T) Ints

func (t *T) Ints() []int

func (*T) Strings

func (t *T) Strings() []string

Jump to

Keyboard shortcuts

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