File: yaml_go110.go

package info (click to toggle)
golang-github-ghodss-yaml 1.0.0%2Bgit20220118.d8423dc-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 132 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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
}