Documentation ¶
Index ¶
- Variables
- func ContainTag(strs []string, prefix string) bool
- func FetchMetaInfo(tag string, comments []string) string
- func FetchTags(strs []string, prefix string) (tags []string)
- func HasTag(strs []string, prefix string) bool
- func IsInStringSlice(what string, where []string) bool
- func LastUpperOrFirst(str string) string
- func LastWordFromName(name string) string
- func ToLower(str string) string
- func ToLowerFirst(s string) string
- func ToSomeCaseWithSep(sep rune, runeConv func(rune) rune) func(string) string
- func ToUpperFirst(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ToSnakeCase = ToSomeCaseWithSep('_', unicode.ToLower) ToURLSnakeCase = ToSomeCaseWithSep('-', unicode.ToLower) )
Functions ¶
func ContainTag ¶
func FetchMetaInfo ¶
Fetch information from slice of comments (docs). Returns appendix of first comment which has tag as prefix.
func IsInStringSlice ¶
func LastUpperOrFirst ¶
Return last upper char in string or first char if no upper characters founded.
func LastWordFromName ¶
func ToLowerFirst ¶
func ToSomeCaseWithSep ¶
func ToUpperFirst ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.