Versions in this module Expand all Collapse all v2 v2.0.1 Jul 1, 2022 v2.0.0 Jul 1, 2022 Changes in this version + var BBlack = []byte + var BBlue = []byte + var BCyan = []byte + var BGreen = []byte + var BMagenta = []byte + var BRed = []byte + var BWhite = []byte + var BYellow = []byte + var NBlack = []byte + var NBlue = []byte + var NCyan = []byte + var NGreen = []byte + var NMagenta = []byte + var NRed = []byte + var NWhite = []byte + var NYellow = []byte + var Reset = []byte + type Configuration interface + GetBool func(key string) bool + GetInt func(key string) int + GetString func(key string) string + Initialize func(configPath string) + type Context struct + Configuration Configuration + Debug bool + MongoDsn string + MySqlDsn string + PostgreDsn string + RedisDsn string + Validator *validator.Validate + func (c *Context) Info(message interface{}) + func (c *Context) ResponseWithJson(w http.ResponseWriter, httpCode int, code string, status string, ...) + func (c *Context) SendBadRequest(w http.ResponseWriter, code string, message string) + func (c *Context) SendForbidden(w http.ResponseWriter, code string, message string) + func (c *Context) SendInternalServerError(w http.ResponseWriter, code string, message string) + func (c *Context) SendSuccess(w http.ResponseWriter, code string, message string, payload interface{}) + func (c *Context) SendUnauthorized(w http.ResponseWriter, code string, message string) Other modules containing this package github.com/ridhwan-faris/latte