{"modulePath":"github.com/GoProjectGroupForEducation/Go-Blog","version":"v0.0.0-20190118092757-cc686c7a0d74","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Variables\n\n```go\nvar DB *sql.DB\n```\n\n## Functions\n\n```go\nfunc GetConn() *sql.DB\n```\n\n```go\nfunc GetISOTimeNow() string\n```\n\n```go\nfunc GetStoreTimeNow() string\n```\n\n```go\nfunc HandleException(w http.ResponseWriter, req *http.Request, next NextFunc) error\n```\n\n```go\nfunc HandlerCompose(middlewares ...MiddleWare) http.HandlerFunc\n```\n\n```go\nfunc LogRequest(w http.ResponseWriter, req *http.Request, next NextFunc) error\n```\n\n```go\nfunc SendData(w http.ResponseWriter, data string, msg string, status int) error\n```\n\n## Types\n\n```go\ntype Exception struct {\n\tMsg    string\n\tStatus int\n}\n```\n\n```go\ntype MiddleWare func(http.ResponseWriter, *http.Request, NextFunc) error\n```\n\n```go\ntype NextFunc func() error\n```\n\n","path":"github.com/GoProjectGroupForEducation/Go-Blog/utils","name":"utils","synopsis":"","isRedistributable":true}
