Documentation
¶
Index ¶
- Variables
- func InArray(O *[]string, S string) bool
- func Md5(s1 string, s2 string) [16]byte
- func Pathinfo(r *http.Request, p1 string, p2 string) (string, string)
- func SetProxy(proxy string)
- type WebBase
- func (B *WebBase) Get(name string) string
- func (B *WebBase) IsErr() *WebBase
- func (B *WebBase) IsJson(b bool) *WebBase
- func (B *WebBase) Post(name string) string
- func (B *WebBase) Send()
- func (B *WebBase) SetBody(b string) *WebBase
- func (B *WebBase) SetCode(c int) *WebBase
- func (B *WebBase) SetHead(k string, v string) *WebBase
- func (B *WebBase) Web403()
- func (B *WebBase) Web404()
- func (B *WebBase) Web500()
- func (B *WebBase) WebErr(msg string)
- func (B *WebBase) WebJson(data string)
- func (B *WebBase) WebLocation(url string)
- func (B *WebBase) WebPage(page string)
- func (B *WebBase) WebSucess(msg string)
Constants ¶
This section is empty.
Variables ¶
View Source
var Sm *session.SessionManager
Functions ¶
Types ¶
type WebBase ¶
type WebBase struct {
// contains filtered or unexported fields
}
func NewWebBase ¶
func NewWebBase(w http.ResponseWriter, r *http.Request) *WebBase
func (*WebBase) WebLocation ¶
func (B *WebBase) WebCtype() {}
Click to show internal directories.
Click to hide internal directories.