Documentation ¶
Index ¶
- Constants
- Variables
- func Config() *ini.File
- func GenerateETag(fileSize, fileName, modTime string) string
- func GetDefaultListenInfo() (string, int)
- func GetExt(s string) string
- func MatchTest(pattern, url string) bool
- func NewRouteMap() interface{}
- func ParseTplSet(tplSet string) (tplName string, tplDir string)
- func PathUnescape(s string) (string, error)
- func PrepareCharset(charset string) string
- func SetConfig(source interface{}, others ...interface{}) (_ *ini.File, err error)
- func Version() string
- type BeforeFunc
- type BeforeHandler
- type ComboRouter
- type Context
- type ContextInvoker
- type Delims
- type DummyRender
- type HTMLOptions
- type Handle
- type Handler
- type Leaf
- type Locale
- type LoggerInvoker
- type Macaron
- type Params
- type Render
- type RenderOptions
- type Request
- type RequestBody
- type ResponseWriter
- type ReturnHandler
- type Route
- type Router
- type StaticOptions
- type TemplateFile
- type TemplateFileSystem
- type TemplateSet
- type TplFile
- type TplFileSystem
- type TplRender
- type Tree
Constants ¶
View Source
const DEFAULT_TPL_SET_NAME = origin_macaron.DEFAULT_TPL_SET_NAME
View Source
const DEV = origin_macaron.DEV
View Source
const PROD = origin_macaron.PROD
View Source
const TEST = origin_macaron.TEST
Variables ¶
View Source
var ColorLog = origin_macaron.ColorLog
View Source
var Env = origin_macaron.Env
View Source
var FlashNow = origin_macaron.FlashNow
View Source
var LogTimeFormat = origin_macaron.LogTimeFormat
View Source
var MaxMemory = origin_macaron.MaxMemory
View Source
var Root = origin_macaron.Root
Functions ¶
func GenerateETag ¶
func GetDefaultListenInfo ¶
func NewRouteMap ¶
func NewRouteMap() interface{}
func ParseTplSet ¶
func PathUnescape ¶
func PrepareCharset ¶
Types ¶
type BeforeFunc ¶
type BeforeFunc = origin_macaron.BeforeFunc
type BeforeHandler ¶
type BeforeHandler = origin_macaron.BeforeHandler
type ComboRouter ¶
type ComboRouter = origin_macaron.ComboRouter
type Context ¶
type Context = origin_macaron.Context
type ContextInvoker ¶
type ContextInvoker = origin_macaron.ContextInvoker
type Delims ¶
type Delims = origin_macaron.Delims
type DummyRender ¶
type DummyRender = origin_macaron.DummyRender
type HTMLOptions ¶
type HTMLOptions = origin_macaron.HTMLOptions
type Handle ¶
type Handle = origin_macaron.Handle
type Handler ¶
type Handler = origin_macaron.Handler
func Renderer ¶
func Renderer(options ...RenderOptions) Handler
func Renderers ¶
func Renderers(options RenderOptions, tplSets ...string) Handler
func Static ¶
func Static(directory string, staticOpt ...StaticOptions) Handler
func Statics ¶
func Statics(opt StaticOptions, dirs ...string) Handler
type Leaf ¶
type Leaf = origin_macaron.Leaf
type Locale ¶
type Locale = origin_macaron.Locale
type LoggerInvoker ¶
type LoggerInvoker = origin_macaron.LoggerInvoker
type Params ¶
type Params = origin_macaron.Params
type Render ¶
type Render = origin_macaron.Render
type RenderOptions ¶
type RenderOptions = origin_macaron.RenderOptions
type Request ¶
type Request = origin_macaron.Request
type RequestBody ¶
type RequestBody = origin_macaron.RequestBody
type ResponseWriter ¶
type ResponseWriter = origin_macaron.ResponseWriter
func NewResponseWriter ¶
func NewResponseWriter(method string, rw http.ResponseWriter) ResponseWriter
type ReturnHandler ¶
type ReturnHandler = origin_macaron.ReturnHandler
type Route ¶
type Route = origin_macaron.Route
type StaticOptions ¶
type StaticOptions = origin_macaron.StaticOptions
type TemplateFile ¶
type TemplateFile = origin_macaron.TemplateFile
type TemplateFileSystem ¶
type TemplateFileSystem = origin_macaron.TemplateFileSystem
type TemplateSet ¶
type TemplateSet = origin_macaron.TemplateSet
func NewTemplateSet ¶
func NewTemplateSet() *TemplateSet
type TplFile ¶
type TplFile = origin_macaron.TplFile
type TplFileSystem ¶
type TplFileSystem = origin_macaron.TplFileSystem
func NewTemplateFileSystem ¶
func NewTemplateFileSystem(opt RenderOptions, omitData bool) TplFileSystem
type TplRender ¶
type TplRender = origin_macaron.TplRender
Click to show internal directories.
Click to hide internal directories.