func Decode(blob []byte, ptr interface{}) error {
	rv := reflect.ValueOf(ptr)
	if rv.Kind() != reflect.Ptr {
		return fmt.Errorf("ini: Decode of non-pointer %s", reflect.TypeOf(ptr))
	}
	p, err := Parse(string(blob), ModeFull, NoDefSection)
	if err != nil {
		return err
	}
	return p.MapStruct(ptr)
}
Decode INI content to golang data
package parser
import (
	"bytes"
	"fmt"
	"reflect"
	"sort"
	"github.com/pkg/errors"
)
var TagName = "ini"