routehtml

package
v2.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2015 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package routehtml provides shortcuts to deal with route and go-on/lib/html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Params

func Params(params ...string) (res map[string]string)

Types

type ErrParams

type ErrParams struct {
	*Tag
	// contains filtered or unexported fields
}

func (*ErrParams) Error

func (p *ErrParams) Error() string

type ErrRouteIsNil

type ErrRouteIsNil struct {
	*Tag
}

func (*ErrRouteIsNil) Error

func (p *ErrRouteIsNil) Error() string

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func AHref

func AHref(r **route.Route, params map[string]string, data ...interface{}) *Tag

func CssHref

func CssHref(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FORM

func FORM(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormDelete

func FormDelete(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormGet

func FormGet(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormPatch

func FormPatch(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormPost

func FormPost(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormPostMultipart

func FormPostMultipart(r **route.Route, params map[string]string, data ...interface{}) *Tag

func FormPut

func FormPut(r **route.Route, params map[string]string, data ...interface{}) *Tag

func ImgSrc

func ImgSrc(r **route.Route, params map[string]string, data ...interface{}) *Tag

func JsSrc

func JsSrc(r **route.Route, params map[string]string, data ...interface{}) *Tag

func (*Tag) Add

func (t *Tag) Add(data ...interface{})

func (*Tag) ServeHTTP

func (t *Tag) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL