Versions in this module Expand all Collapse all v1 v1.0.1 Mar 19, 2021 v1.0.0 Sep 5, 2020 Changes in this version + func AddStatic(mux Mux, path, content string) + func AddStaticBinary(mux Mux, path string, content []byte) + func AddStaticFromFile(mux Mux, path, localPath string) error + func AppendParams(u *url.URL, nameValues ...string) *url.URL + func Error(w http.ResponseWriter, status int) + func HasParam(values url.Values, param string) bool + func NewUrl(path string, nameValues ...string) *url.URL + func Redirect(w http.ResponseWriter, r *http.Request, redirectUrl string) + func ReportError(w http.ResponseWriter, message string, err error) + func WithParams(u *url.URL, nameValues ...string) *url.URL + func WriteTemplate(w io.Writer, t *template.Template, v interface{}) + type Choice struct + Name string + Value interface{} + type ComboBox []Choice + func (c ComboBox) Items() []Selection + func (c ComboBox) ToSelection(s string) *Selection + func (c ComboBox) ToValue(s string) interface{} + type Mux interface + Handle func(pattern string, handler http.Handler) + type PageBreadCrumb struct + End bool + PageNo int + PageNoParam string + URL *url.URL + func (p *PageBreadCrumb) DisplayPageNo() int + func (p *PageBreadCrumb) NextPageLink() *url.URL + func (p *PageBreadCrumb) PrevPageLink() *url.URL + type SelectModel interface + ToSelection func(s string) *Selection + type Selection struct + Name string + Value string + type Selections []Selection + func (s Selections) ToSelection(str string) *Selection + type Values struct + func (v Values) Equals(paramName, value string) bool + func (v Values) GetSelection(model SelectModel, name string) *Selection