prateekpandey14 9e60b2f3c8 Add vendor dependencies
Signed-off-by: prateekpandey14 <prateekpandey14@gmail.com>
2019-02-07 14:49:15 +05:30

15 lines
373 B
Go

// This file contains changes that are only compatible with go 1.10 and onwards.
// +build go1.10
package yaml
import "encoding/json"
// DisallowUnknownFields configures the JSON decoder to error out if unknown
// fields come along, instead of dropping them by default.
func DisallowUnknownFields(d *json.Decoder) *json.Decoder {
d.DisallowUnknownFields()
return d
}