package
0.0.0-20170820165359-7f20a140fd37
Repository: https://github.com/infinityworks/go-common.git
Documentation: pkg.go.dev

# Functions

MarshalBody takes an interface to Marshal as JSON and returns it, it also handles returning of an error state.
NewRouter creates a new MUX router to operate with.
UnmarshalBody Accepts an io.ReadCloser (usually a HTTP request body) and an interface to unmarshal the request into.

# Structs

Route structure defines the standard interface for API interaction.

# Type aliases

Routes are a collection of Route structures.