Documentation ¶
Index ¶
- Constants
- Variables
- func DecrLogOffset()
- func ErrorLog(s string, args ...interface{})
- func GenerateSource(a *Application) (string, error)
- func GetGOPATH() string
- func IncrLogOffset()
- func InfoLog(s string, args ...interface{})
- func Log(prefix, s string)
- func LogPlace() string
- func PrefixString(place, s string, attrs ...color.Attribute) string
- func ShowBanner(c *cli.Context) error
- func TypeContainsController(t *tparser.Type) (bool, string, bool)
- type AppSourceGenerator
- type Application
- type ApplicationConfig
- type Controller
- type Route
Constants ¶
View Source
const ( Version = "0.0.1" BuildDate = "2016-09-11" )
View Source
const AppTemplate = `` /* 1274-byte string literal not displayed */
Variables ¶
View Source
var ControllerPkgName = "gone"
View Source
var ControllerPkgPath = "github.com/go-one/gone"
View Source
var ControllerTypeName = "Controller"
Functions ¶
func DecrLogOffset ¶
func DecrLogOffset()
func GenerateSource ¶
func GenerateSource(a *Application) (string, error)
func IncrLogOffset ¶
func IncrLogOffset()
func ShowBanner ¶
func TypeContainsController ¶
Types ¶
type AppSourceGenerator ¶
type AppSourceGenerator struct {
*Application
}
type Application ¶
type Application struct { Controllers []*Controller Routes []*Route Packages map[string]string // contains filtered or unexported fields }
func NewApplication ¶
func NewApplication(path string) *Application
func (*Application) Build ¶
func (a *Application) Build() error
func (*Application) LoadConfig ¶
func (a *Application) LoadConfig()
func (*Application) Run ¶
func (a *Application) Run() error
type ApplicationConfig ¶
type Controller ¶
Click to show internal directories.
Click to hide internal directories.