项目作者: snwfdhmp

项目描述 :
Helpers to parse JSON/YAML files into Golang structs
高级语言: Go
项目地址: git://github.com/snwfdhmp/decode.git
创建时间: 2018-04-05T02:28:11Z
项目社区:https://github.com/snwfdhmp/decode

开源协议:

下载


Decode

Go Report Card Documentation cover.run

Install

Install with go get github.com/snwfdhmp/decode.

Import with

  1. import "github.com/snwfdhmp/decode"

Usage

Decode YAML

  1. var data interface{}
  2. err := decode.YAML("config.yml", &data)

or decode JSON

  1. var data interface{}
  2. err := decode.JSON("config.json", &data)

Documentation

Complete documentation can be found on godoc

Contributors