mapstruct

package
v0.0.0-...-f3a3c3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 8 Imported by: 0

README

TODO

This plug decode request body (json) to map[string]interface{}

  • add plug
  • implement plugger and handler interface
  • add helper functions
  • add test
  • add example

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPlugNotPlugged = errors.New("mapstruct plug is not plugged to pipeline")

ErrPlugNotPlugged mapstruct plug is not plugged to pipeline

Functions

func Decode

func Decode(ctx context.Context, val interface{}) error

Decode payload to struct

func New

func New(onError plugs.OnErrorFn) xrest.Plugger

New create new plugger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL