Documentation ¶
Overview ¶
beta version
Index ¶
- Variables
- func GetDir() string
- func GetTemplate(address string) (*template.Template, error)
- func HumanInt(st interface{}) string
- func InitDir(address string)
- func IsStatus(status, is, value string, params ...string) string
- func Json(w http.ResponseWriter, data interface{})
- func JsonString(w http.ResponseWriter, data string)
- func MessageError(w http.ResponseWriter, message ...string)
- func MessageOK(w http.ResponseWriter, message ...string)
- func Pagination(url string, page int64, page_max int64, address string) (r template.HTML, err error)
- func Redirect(w http.ResponseWriter, address string)
- func Render(w http.ResponseWriter, data interface{}, address string)
- func RenderHTML(data interface{}, address string) (r template.HTML, err error)
- func RenderString(data interface{}, address string) (r string, err error)
- func RenderText(w http.ResponseWriter, data interface{}, address string)
- func SetDir(address string)
- func TMPL_json(v interface{}) template.JS
- type Json_error_data
- type PaginationLink
- func (p *PaginationLink) GetAddress() string
- func (p *PaginationLink) GetPage() int64
- func (p *PaginationLink) IsActive() bool
- func (p *PaginationLink) IsType(link_type string) bool
- func (p *PaginationLink) SetActive()
- func (p *PaginationLink) SetPage(page int64) *PaginationLink
- func (p *PaginationLink) SetType(link_type string) *PaginationLink
- func (p *PaginationLink) SetUrl(url string) *PaginationLink
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Json_error_data_en string Json_error_data_ru string )
Functions ¶
func Json ¶
func Json(w http.ResponseWriter, data interface{})
func JsonString ¶
func JsonString(w http.ResponseWriter, data string)
func MessageError ¶
func MessageError(w http.ResponseWriter, message ...string)
func MessageOK ¶
func MessageOK(w http.ResponseWriter, message ...string)
func Pagination ¶
func Redirect ¶
func Redirect(w http.ResponseWriter, address string)
func Render ¶
func Render(w http.ResponseWriter, data interface{}, address string)
func RenderString ¶
func RenderText ¶
func RenderText(w http.ResponseWriter, data interface{}, address string)
Types ¶
type Json_error_data ¶
type PaginationLink ¶
type PaginationLink struct {
// contains filtered or unexported fields
}
func NewPaginationLink ¶
func NewPaginationLink() (p *PaginationLink)
func (*PaginationLink) GetAddress ¶
func (p *PaginationLink) GetAddress() string
func (*PaginationLink) GetPage ¶
func (p *PaginationLink) GetPage() int64
func (*PaginationLink) IsActive ¶
func (p *PaginationLink) IsActive() bool
func (*PaginationLink) IsType ¶
func (p *PaginationLink) IsType(link_type string) bool
func (*PaginationLink) SetActive ¶
func (p *PaginationLink) SetActive()
func (*PaginationLink) SetPage ¶
func (p *PaginationLink) SetPage(page int64) *PaginationLink
func (*PaginationLink) SetType ¶
func (p *PaginationLink) SetType(link_type string) *PaginationLink
func (*PaginationLink) SetUrl ¶
func (p *PaginationLink) SetUrl(url string) *PaginationLink
Click to show internal directories.
Click to hide internal directories.