Documentation ¶
Overview ¶
Copyright (C) 2016-2017 dapperdox.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- Variables
- func DefaultVars(req *http.Request, apiSpec *spec.APISpecification, m Vars) map[string]interface{}
- func HTML(w http.ResponseWriter, status int, name string, binding interface{}, ...)
- func New() *render.Render
- func Register()
- func SetGuidesNavigation(apiSpec *spec.APISpecification, guidesnav *[]*navigation.NavigationNode)
- func TemplateLookup(t string) *template.Template
- type GuideType
- type HTMLWriter
- type Vars
Constants ¶
This section is empty.
Variables ¶
var Render *render.Render
Render is a global instance of github.com/unrolled/render.Render
Functions ¶
func DefaultVars ¶
---------------------------------------------------------------------------------------- DefaultVars adds the default vars (config, specs, others....) to the data map
func HTML ¶
func HTML(w http.ResponseWriter, status int, name string, binding interface{}, htmlOpt ...render.HTMLOptions)
---------------------------------------------------------------------------------------- HTML is an alias to github.com/unrolled/render.Render.HTML
func New ¶
---------------------------------------------------------------------------------------- New creates a new instance of github.com/unrolled/render.Render
func SetGuidesNavigation ¶
func SetGuidesNavigation(apiSpec *spec.APISpecification, guidesnav *[]*navigation.NavigationNode)
----------------------------------------------------------------------------------------
func TemplateLookup ¶
----------------------------------------------------------------------------------------
Types ¶
type HTMLWriter ¶
type HTMLWriter struct {
// contains filtered or unexported fields
}
----------------------------------------------------------------------------------------
func (HTMLWriter) Flush ¶
func (w HTMLWriter) Flush()
func (HTMLWriter) Header ¶
func (w HTMLWriter) Header() http.Header
func (HTMLWriter) WriteHeader ¶
func (w HTMLWriter) WriteHeader(int)