Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Env []templates.Environment
View Source
var Libs = []templates.Library{
{Name: "net/http"},
{Name: "github.com/prometheus/client_golang/prometheus/promhttp"},
}
View Source
var Models = map[string]string{}
View Source
var Props = []templates.Property{
{Name: "Http", Type: "*http.ServeMux", Default: "http.NewServeMux()"},
}
View Source
var TemplateRunFunction = `` /* 138-byte string literal not displayed */
View Source
var TemplateSetter = `` /* 126-byte string literal not displayed */
View Source
var TemplateSetterFunction = `` /* 163-byte string literal not displayed */
View Source
var Templates = map[string]string{
"app/http.go": `package app
import (
"net/http"
)
func (a *Application) RunHttp() error {
// TODO: Implement me
go func() {
a.Logger.Info("http server started on [::]:4000")
a.Error <- http.ListenAndServe(":4000", a.Http)
}()
return nil
}
`,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.