str

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearSpace added in v0.3.1

func ClearSpace(s string) string

清除空格

func DelQue

func DelQue(que []string, ss ...string) []string

删除队列

func InQue

func InQue(s string, que []string) int

* 字符串对是否存在 不存在返回 -1

func InQuei

func InQuei(s string, que []string) int

不区分大小写

func Lcfirst

func Lcfirst(str string) string

首字母小写

func Render added in v0.3.1

func Render(tpl string, data interface{}) (string, error)

根据 go template 模板编译后返回数据 支持 template 模板语法

func Reverse added in v0.4.1

func Reverse(s string) string

字符串反转

func SplitSafe added in v0.3.1

func SplitSafe(s, sep string) []string

安全字符串分割

func Ucfirst

func Ucfirst(str string) string

首字母大写

Types

type WriterToContent added in v0.3.1

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

写入器导出为内容

func (*WriterToContent) Content added in v0.3.1

func (wr *WriterToContent) Content() string

获取值

func (*WriterToContent) Write added in v0.3.1

func (wr *WriterToContent) Write(p []byte) (n int, err error)

实现写入器语法

Jump to

Keyboard shortcuts

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