Documentation ¶
Index ¶
- Variables
- func Ext(name string) (ext string)
- func HasExt(name string) bool
- type Asset
- type AssetFactory
- type AssetFunc
- type DirectoryAssetFactory
- type FuncMap
- type Option
- type Render
- func (this Render) MustRenderOrNotFound(w http.ResponseWriter)
- func (this Render) Option(opt ...Option) Render
- func (this Render) Render(dst http.ResponseWriter) (err error)
- func (this Render) RenderOrNotFound(w http.ResponseWriter) (err error)
- func (this Render) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKey contextKey
View Source
var ErrIsDir = errors.New("is directory")
Functions ¶
Types ¶
type AssetFactory ¶
type DirectoryAssetFactory ¶
type DirectoryAssetFactory struct {
Dir string
}
func (DirectoryAssetFactory) Factory ¶
func (this DirectoryAssetFactory) Factory(name string) (exec Asset, err error)
func (DirectoryAssetFactory) GetDir ¶
func (this DirectoryAssetFactory) GetDir() string
type Render ¶
type Render struct { Request *http.Request Status int Data interface{} FileNames []string AssetFactory AssetFactory DirectoryIndexDisabled bool TemplateFuncMap FuncMap }
func (Render) MustRenderOrNotFound ¶
func (this Render) MustRenderOrNotFound(w http.ResponseWriter)
func (Render) RenderOrNotFound ¶
func (this Render) RenderOrNotFound(w http.ResponseWriter) (err error)
Click to show internal directories.
Click to hide internal directories.