Documentation ¶
Index ¶
- Variables
- func Escape(n string) string
- func GoLexName(n string) []string
- func GoMergeNames(n1, n2 string) string
- func GoName(n string) string
- func GoNameNoReserved(n string) string
- func GoSnakeCase(n string) string
- func LexName(n string) []string
- func Unescape(n string) string
- type Config
- type Lexer
- type Namer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Title = cases.Title(language.English).String
)
Functions ¶
func GoMergeNames ¶
func GoNameNoReserved ¶
func GoSnakeCase ¶
Types ¶
type Config ¶
type Config struct { Rename map[string][]string `yaml:"rename"` Rotate map[string]string `yaml:"rotate"` Abbr map[string]string `yaml:"abbr"` Split map[string][]string `yaml:"split"` LookBehind map[string]map[string][]string `yaml:"lookBehind"` Trim struct { Words []string `yaml:"word"` Word map[string]struct{} `yaml:"-"` PrefixAll []string `yaml:"prefixAll"` Prefixes []string `yaml:"prefix"` Prefix map[string]struct{} `yaml:"-"` Suffix []string `yaml:"suffix"` } }
func LoadConfig ¶
func LoadConfig() *Config
Click to show internal directories.
Click to hide internal directories.