mirror of
https://github.com/rancher/rke.git
synced 2025-09-05 17:00:20 +00:00
K8s Vendor update to 1.10.5
This commit is contained in:
6
vendor/github.com/json-iterator/go/feature_adapter.go
generated
vendored
6
vendor/github.com/json-iterator/go/feature_adapter.go
generated
vendored
@@ -110,6 +110,7 @@ type Encoder struct {
|
||||
// Encode encode interface{} as JSON to io.Writer
|
||||
func (adapter *Encoder) Encode(val interface{}) error {
|
||||
adapter.stream.WriteVal(val)
|
||||
adapter.stream.WriteRaw("\n")
|
||||
adapter.stream.Flush()
|
||||
return adapter.stream.Error
|
||||
}
|
||||
@@ -125,3 +126,8 @@ func (adapter *Encoder) SetEscapeHTML(escapeHTML bool) {
|
||||
config.EscapeHTML = escapeHTML
|
||||
adapter.stream.cfg = config.Froze().(*frozenConfig)
|
||||
}
|
||||
|
||||
// Valid reports whether data is a valid JSON encoding.
|
||||
func Valid(data []byte) bool {
|
||||
return ConfigDefault.Valid(data)
|
||||
}
|
||||
|
Reference in New Issue
Block a user