/mapstructure-hooks

hooks on top of mapstructure

Primary LanguageGoApache License 2.0Apache-2.0

GoDoc Go Report Card Build Status

About

This is a small extension to Mitshell Hashimoto's excellent library mapstructure. It allows one to fill arrays of interfaces whose concrete type is determined by their content. A typical usecase is configuring log handlers from a yaml file and processing the imported map through mapstructure.

The design was heavily inspired by logrus_mate

Usage

For a detailled description look at the examples in the godocs.