Documentation
¶
Index ¶
- type App
- type Name
- func (n Name) Camel() string
- func (n Name) CamelSingular() string
- func (n Name) File() string
- func (n Name) Lower() string
- func (n Name) Model() string
- func (n Name) ModelPlural() string
- func (n Name) Plural() string
- func (n Name) PluralCamel() string
- func (n Name) PluralUnder() string
- func (n Name) Resource() string
- func (n Name) Singular() string
- func (n Name) Table() string
- func (n Name) Title() string
- func (n Name) URL() string
- func (n Name) UnderSingular() string
- func (n Name) Underscore() string
- func (n Name) VarCasePlural() string
- func (n Name) VarCaseSingular() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Pwd string `json:"pwd"`
Root string `json:"root"`
GoPath string `json:"go_path"`
Name Name `json:"name"`
Bin string `json:"bin"`
PackagePkg string `json:"package_path"`
ActionsPkg string `json:"actions_path"`
ModelsPkg string `json:"models_path"`
GriftsPkg string `json:"grifts_path"`
WithPop bool `json:"with_pop"`
WithDep bool `json:"with_dep"`
WithWebpack bool `json:"with_webpack"`
WithYarn bool `json:"with_yarn"`
WithDocker bool `json:"with_docker"`
WithGrifts bool `json:"with_grifts"`
}
App represents meta data for a Buffalo application on disk
type Name ¶
type Name string
Name is a string that represents the "name" of a thing, like an app, model, etc...
func (Name) ModelPlural ¶
ModelPlural version of a name. ie. "user" => "Users"
func (Name) Underscore ¶
Underscore version of a name. ie. "FooBar" => "foo_bar"
func (Name) VarCasePlural ¶
VarCasePlural version of a name. ie. "FooBar" => "fooBar"
func (Name) VarCaseSingular ¶
VarCaseSingular version of a name. ie. "FooBar" => "fooBar"
Click to show internal directories.
Click to hide internal directories.