Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hello ¶
type Hello struct {
// Message to return, default is "OK"
Message string `cfg:"message"`
// Status code to return, default is 200
StatusCode int `cfg:"status_code"`
Headers map[string]string `cfg:"headers"`
ContentType string `cfg:"content_type"`
// Template to render go template
Template bool `cfg:"template"`
// Trust is allow to use powerful functions
Trust bool `cfg:"trust"`
// WorkDir is the directory for some functions
WorkDir string `cfg:"work_dir"`
// Delims is the delimiters for the template
Delims []string `cfg:"delims"`
}
Click to show internal directories.
Click to hide internal directories.