Documentation ¶
Index ¶
- Constants
- func Marshal(val interface{}) (data []byte, e goerr.IError)
- func ParseBody(r io.ReadCloser, data interface{}) goerr.IError
- func Send(writer http.ResponseWriter, response *Response)
- func SendError(writer http.ResponseWriter, e goerr.IError)
- func SendJSON(writer http.ResponseWriter, httpCode int, data interface{})
- func SendOk(writer http.ResponseWriter, message interface{}, data interface{}, ...)
- func Unmarshal(data []byte, val interface{}) (e goerr.IError)
- func YamlMarshal(val interface{}) (data []byte, e goerr.IError)
- func YamlUnmarshal(data []byte, val interface{}) (e goerr.IError)
- type Dictionary
- func (d *Dictionary) DictionaryIdsInterface(dictionaryName string) (res []interface{}, e goerr.IError)
- func (d *Dictionary) DictionaryRender(dictionaryName string, dictionaryID int) (res DictionaryRender, e goerr.IError)
- func (d *Dictionary) IsKeyExists(key string) (res bool)
- func (d *Dictionary) Render() map[string]*[]DictionaryRender
- type DictionaryRender
- type Locale
- type Pagination
- type Response
Constants ¶
View Source
const ( ENi = 45 RUi = 643 ENLocale = Locale(ENi) RULocale = Locale(RUi) )
Variables ¶
This section is empty.
Functions ¶
func Send ¶ added in v1.0.3
func Send(writer http.ResponseWriter, response *Response)
func SendJSON ¶ added in v1.0.5
func SendJSON(writer http.ResponseWriter, httpCode int, data interface{})
func SendOk ¶ added in v1.0.3
func SendOk(writer http.ResponseWriter, message interface{}, data interface{}, pagination interface{})
func YamlMarshal ¶ added in v1.0.4
func YamlUnmarshal ¶ added in v1.0.4
Types ¶
type Dictionary ¶
func (*Dictionary) DictionaryIdsInterface ¶
func (d *Dictionary) DictionaryIdsInterface(dictionaryName string) (res []interface{}, e goerr.IError)
func (*Dictionary) DictionaryRender ¶
func (d *Dictionary) DictionaryRender(dictionaryName string, dictionaryID int) (res DictionaryRender, e goerr.IError)
func (*Dictionary) IsKeyExists ¶
func (d *Dictionary) IsKeyExists(key string) (res bool)
func (*Dictionary) Render ¶ added in v1.0.7
func (d *Dictionary) Render() map[string]*[]DictionaryRender
type DictionaryRender ¶
type Pagination ¶ added in v1.0.3
Click to show internal directories.
Click to hide internal directories.