Documentation
¶
Index ¶
- Variables
- func EmptyString(s string) bool
- func InArray(str string, list []string) bool
- func Message(status bool, message string, statusCode int) map[string]interface{}
- func MicroTime() float64
- func New(h http.Handler, log *log.Logger) http.Handler
- func RandomString(length int) string
- func Respond(w http.ResponseWriter, data map[string]interface{})
- func StrReplace(search, replace, subject string) string
- func Strip(s string) string
- type LogRequestHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *log.Logger
Functions ¶
func RandomString ¶
RandomString Returns random string with specified length
func Respond ¶
func Respond(w http.ResponseWriter, data map[string]interface{})
Respond is used to reply to HTTP request
Types ¶
type LogRequestHandler ¶
LogRequestHandler ...
func (LogRequestHandler) ServeHTTP ¶
func (rh LogRequestHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.