Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Transformer type transforms data
func Transform ¶
func Transform(data interface{}, err error) *Transformer
Transform creates Transformer struct
func (Transformer) With ¶
func (t Transformer) With(transfomer func(interface{}) interface{}) peer.Response
With func transformer
Click to show internal directories.
Click to hide internal directories.