mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-20 00:02:16 +08:00
fix comment in mode.go
EnableJsonDisallowUnknownFields => EnableJsonDecoderDisallowUnknownFields
This commit is contained in:
parent
db9174ae0c
commit
500436d99d
2
mode.go
2
mode.go
@ -77,7 +77,7 @@ func EnableJsonDecoderUseNumber() {
|
|||||||
binding.EnableDecoderUseNumber = true
|
binding.EnableDecoderUseNumber = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// EnableJsonDisallowUnknownFields sets true for binding.EnableDecoderDisallowUnknownFields to
|
// EnableJsonDecoderDisallowUnknownFields sets true for binding.EnableDecoderDisallowUnknownFields to
|
||||||
// call the DisallowUnknownFields method on the JSON Decoder instance.
|
// call the DisallowUnknownFields method on the JSON Decoder instance.
|
||||||
func EnableJsonDecoderDisallowUnknownFields() {
|
func EnableJsonDecoderDisallowUnknownFields() {
|
||||||
binding.EnableDecoderDisallowUnknownFields = true
|
binding.EnableDecoderDisallowUnknownFields = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user