strings

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ForbiddenWords = []string{
	"id",
}

ForbiddenWords are words that will be removed from text (in Humanize func)

Functions

func Camelize

func Camelize(s string) string

Camelize the string

func Humanize

func Humanize(s string, capitalize bool) string

Humanize a string means to remove underscores and return string as lower. String can be capitalized

func Truncate

func Truncate(s string, charactersCount int) string

Truncate a string, but never cut a word. So if you would cut the word it will be return completely (to the end or the next whitespace)

func Underscore

func Underscore(s string) string

Underscore the string

Types

This section is empty.

Jump to

Keyboard shortcuts

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