meta

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func New

func New(root string) App

New App based on the details found at the provided root path

func (App) String

func (a App) String() string

type Name

type Name string

Name is a string that represents the "name" of a thing, like an app, model, etc...

func (Name) Camel

func (n Name) Camel() string

Camel version of a name

func (Name) CamelSingular

func (n Name) CamelSingular() string

CamelSingular version of a name

func (Name) File

func (n Name) File() string

File version of a name

func (Name) Lower

func (n Name) Lower() string

Lower case version of a string

func (Name) Model

func (n Name) Model() string

Model version of a name. ie. "user" => "User"

func (Name) ModelPlural

func (n Name) ModelPlural() string

ModelPlural version of a name. ie. "user" => "Users"

func (Name) Plural

func (n Name) Plural() string

Plural version of a name

func (Name) PluralCamel

func (n Name) PluralCamel() string

PluralCamel version of a name

func (Name) PluralUnder

func (n Name) PluralUnder() string

PluralUnder version of a name

func (Name) Resource

func (n Name) Resource() string

Resource version of a name

func (Name) Singular

func (n Name) Singular() string

Singular version of a name

func (Name) Table

func (n Name) Table() string

Table version of a name

func (Name) Title

func (n Name) Title() string

Title version of a name. ie. "foo_bar" => "Foo Bar"

func (Name) URL

func (n Name) URL() string

URL version of a name

func (Name) UnderSingular

func (n Name) UnderSingular() string

UnderSingular version of a name

func (Name) Underscore

func (n Name) Underscore() string

Underscore version of a name. ie. "FooBar" => "foo_bar"

func (Name) VarCasePlural

func (n Name) VarCasePlural() string

VarCasePlural version of a name. ie. "FooBar" => "fooBar"

func (Name) VarCaseSingular

func (n Name) VarCaseSingular() string

VarCaseSingular version of a name. ie. "FooBar" => "fooBar"

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL