Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2022 Changes in this version + type Body struct + Data interface{} + Errors []Error + Message string + Success bool + Timestamp time.Time + func NewEmpty() *Body + func (response *Body) GetData() (data interface{}, exists bool) + func (response *Body) GetErrors() (errors []Error, exists bool) + func (response *Body) GetMessage() (message string, exists bool) + type Builder interface + AppendError func(code int64, reason string) Builder + AppendErrors func(errors ...Error) Builder + Build func() Body + Clean func() Builder + Send func(callback SendFunc) error + SetData func(data interface{}) Builder + SetErrors func(errors ...Error) Builder + SetMessage func(message string) Builder + SetStatusCode func(statusCode int) Builder + Write func(writer http.ResponseWriter) (int, error) + func NewBuilder() Builder + type Error struct + Code int64 + Reason string + type SendFunc func(statusCode int, value interface{}) error