Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/710leo/toruk
/ functions
Functions
46 in github.com/710leo/toruk
⨍
Functions
46
◇
Types & classes
5
↓ 9 callers
Function
String
(r *http.Request, key string, defVal string)
http/param/param.go:12
↓ 4 callers
Function
_build
(code int, defval string, custom ...string)
http/errors/errors.go:38
↓ 1 callers
Function
ConfigRouter
(r *mux.Router)
http/routes.go:11
↓ 1 callers
Function
configConfRoutes
(r *mux.Router)
http/routes.go:15
↓ 1 callers
Function
handleConfig
(configFile string)
main.go:49
↓ 1 callers
Function
handleHelp
(displayHelp bool)
main.go:42
↓ 1 callers
Function
handleVersion
(displayVersion bool)
main.go:35
↓ 1 callers
Function
isAjax
(r *http.Request)
http/middleware/recovery.go:69
↓ 1 callers
Function
prepare
()
main.go:14
Function
BadRequestError
400
http/errors/errors.go:24
Function
Bool
(r *http.Request, key string, defVal bool)
http/param/param.go:144
Function
Config
()
g/config.go:28
Function
Data
(w http.ResponseWriter, v interface{}, msg ...string)
http/render/render.go:68
Function
Error
(w http.ResponseWriter, err error)
http/render/render.go:55
Function
Example
()
http/helper/helper.go:3
Function
Float64
(r *http.Request, key string, defVal float64)
http/param/param.go:112
Function
HTML
(r *http.Request, w http.ResponseWriter, name string, htmlOpt ...render.HTMLOptions)
http/render/render.go:43
Function
HomeIndex
(w http.ResponseWriter, r *http.Request)
handler/home_hander.go:9
Function
Init
()
http/render/render.go:21
Function
Init
()
http/cookie/cookie.go:11
Function
Int
(r *http.Request, key string, defVal int)
http/param/param.go:79
Function
Int64
(r *http.Request, key string, defVal int64)
http/param/param.go:47
Function
InternalServerError
500
http/errors/errors.go:34
Function
MaybePanic
(err error)
http/errors/errors.go:49
Function
Message
(w http.ResponseWriter, format string, args ...interface{})
http/render/render.go:64
Function
MustBool
(r *http.Request, key string)
http/param/param.go:155
Function
MustFloat64
(r *http.Request, key string, displayName ...string)
http/param/param.go:126
Function
MustInt
(r *http.Request, key string, displayName ...string)
http/param/param.go:93
Function
MustInt64
(r *http.Request, key string, displayName ...string)
http/param/param.go:61
Function
MustString
(r *http.Request, key string, displayName ...string)
http/param/param.go:35
Function
NewLogger
NewLogger returns a new Logger instance
http/middleware/logger.go:19
Function
NewRecovery
NewRecovery returns a new instance of Recovery
http/middleware/recovery.go:23
Function
NoPrivError
403
http/errors/errors.go:29
Function
NotLoginError
401
http/errors/errors.go:19
Function
Panic
(msg string)
http/errors/errors.go:60
Function
Parse
(cfg string)
g/config.go:34
Function
Put
(r *http.Request, key string, val interface{})
http/render/render.go:32
Function
ReadUser
(r *http.Request)
http/cookie/cookie.go:17
Function
RemoveUser
(w http.ResponseWriter)
http/cookie/cookie.go:47
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
http/middleware/recovery.go:32
Method
ServeHTTP
(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
http/middleware/logger.go:23
Function
Start
()
http/http.go:13
Function
Text
(w http.ResponseWriter, v string, codes ...int)
http/render/render.go:47
Function
WriteUser
(w http.ResponseWriter, example string)
http/cookie/cookie.go:27
Function
init
()
main.go:18
Function
main
()
main.go:31