Documentation ¶
Index ¶
- func Camel(s string) string
- func Capital(s string) string
- func Element(typ string) string
- func KeyValue(s string) (string, string, error)
- func Minuscule(s string) string
- func Parse(dir string) (*ast.Package, error)
- func Plural(s string) string
- func Singular(s string) string
- func Slice(typ string) string
- func Snake(name string) string
- func Star(s string) string
- type MethodSignature
- type VarDecl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Element ¶
Element is the reverse of Slice, returning the element type name the slice with given type.
func KeyValue ¶
KeyValue extracts the key and value encoded in the given string and separated by '=' (foo=bar -> foo, bar).
func Minuscule ¶
Minuscule turns the first character to lower case ("Foo" -> "foo") or the whole word if it is all uppercase ("UUID" -> "uuid").
Types ¶
Click to show internal directories.
Click to hide internal directories.