X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src/encoding/json
opt
/
golang
/
1.17.2
/
src
/
encoding
/
json
/
📁
..
📄
bench_test.go
(8.57 KB)
📄
decode.go
(35.29 KB)
📄
decode_test.go
(61.95 KB)
📄
encode.go
(38.39 KB)
📄
encode_test.go
(28.27 KB)
📄
example_marshaling_test.go
(1.23 KB)
📄
example_test.go
(6.06 KB)
📄
example_text_marshaling_test.go
(1.23 KB)
📄
fold.go
(3.39 KB)
📄
fold_test.go
(2.89 KB)
📄
fuzz.go
(798 B)
📄
indent.go
(3.4 KB)
📄
number_test.go
(2.2 KB)
📄
scanner.go
(16.03 KB)
📄
scanner_test.go
(6.16 KB)
📄
stream.go
(12.92 KB)
📄
stream_test.go
(11.18 KB)
📄
tables.go
(4.16 KB)
📄
tagkey_test.go
(2.67 KB)
📄
tags.go
(1.05 KB)
📄
tags_test.go
(565 B)
📁
testdata
Editing: fuzz.go
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build gofuzz // +build gofuzz package json import ( "fmt" ) func Fuzz(data []byte) (score int) { for _, ctor := range []func() interface{}{ func() interface{} { return new(interface{}) }, func() interface{} { return new(map[string]interface{}) }, func() interface{} { return new([]interface{}) }, } { v := ctor() err := Unmarshal(data, v) if err != nil { continue } score = 1 m, err := Marshal(v) if err != nil { fmt.Printf("v=%#v\n", v) panic(err) } u := ctor() err = Unmarshal(m, u) if err != nil { fmt.Printf("v=%#v\n", v) fmt.Printf("m=%s\n", m) panic(err) } } return }
Upload File
Create Folder