Documentation
¶
Overview ¶
Package gotext is a wrapper over matthewmueller/text for generating go-compatible code. This means replacing keywords with valid alternatives and handling common acronyms that golint warns about.
One of the goals for this package is to have orthogonal functions. For example, text.Snake("Hi World") should return `Hi_World`, not `hi_word`. This can be challenging to pull off at times and I don't think we're quite there yet. Once we feel like we've reached the correct balance, I think it makes sense to pull out this package and make it available for everyone.
Index ¶
- func Camel(s ...string) string
- func Lower(s ...string) string
- func Pascal(s ...string) string
- func Plural(s ...string) string
- func Short(s ...string) string
- func Singular(s ...string) string
- func Slim(s ...string) string
- func Slug(s ...string) string
- func Snake(s ...string) string
- func Space(s ...string) string
- func Title(s ...string) string
- func Unreserved(s string) string
- func Upper(s ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unreserved ¶
Unreserved returns an unreserved version of the word
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.