strs

package
v0.0.0-...-46db650 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Strs

type Strs struct{}

Strs Strs的包装

func (Strs) At

func (s Strs) At(arr []string, index int) string

At 取Item

func (Strs) CSS

func (s Strs) CSS(v interface{}) template.CSS

CSS to css

func (Strs) HTML

func (s Strs) HTML(v interface{}) template.HTML

HTML to html

func (Strs) Pre

func (s Strs) Pre(v interface{}) template.HTML

Pre string to html

func (Strs) QueryEscape

func (s Strs) QueryEscape(str string) string

QueryEscape URL编码

func (Strs) ReplaceAll

func (s Strs) ReplaceAll(v interface{}, old, new string) string

ReplaceAll Replace All

func (Strs) Split

func (s Strs) Split(str string, sep string) []string

Split 分割字符串

func (Strs) SplitI

func (s Strs) SplitI(str string, sep string) []interface{}

SplitI 分割字符串,并返回[]interface{}

func (Strs) String

func (s Strs) String(v interface{}) string

String to string

func (Strs) Substr

func (s Strs) Substr(str string, start, end int) string

Substr 子字符串

func (Strs) Trim

func (s Strs) Trim(str string, cutset string) string

Trim 去两头

func (Strs) TrimSpace

func (s Strs) TrimSpace(str string) string

TrimSpace 去两头空格

Jump to

Keyboard shortcuts

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