MCPcopy Create free account
hub / github.com/StackExchange/httpunit / Decode

Function Decode

_third_party/github.com/BurntSushi/toml/decode.go:105–115  ·  view source on GitHub ↗

Decode will decode the contents of `data` in TOML format into a pointer `v`. TOML hashes correspond to Go structs or maps. (Dealer's choice. They can be used interchangeably.) TOML arrays of tables correspond to either a slice of structs or a slice of maps. TOML datetimes correspond to Go `time.T

(data string, v interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

TestDecodeSimpleFunction · 0.85
TestDecodeEmbeddedFunction · 0.85
TestTableArraysFunction · 0.85
TestCaseFunction · 0.85
TestPointersFunction · 0.85
TestDecodeSimpleArrayFunction · 0.85
TestDecodeArrayWrongSizeFunction · 0.85
TestDecodeSizedIntsFunction · 0.85
TestUnmarshalerFunction · 0.85
ExampleDecodeFunction · 0.85

Calls 3

unifyMethod · 0.95
parseFunction · 0.85
rvalueFunction · 0.85

Tested by 15

TestDecodeSimpleFunction · 0.68
TestDecodeEmbeddedFunction · 0.68
TestTableArraysFunction · 0.68
TestCaseFunction · 0.68
TestPointersFunction · 0.68
TestDecodeSimpleArrayFunction · 0.68
TestDecodeArrayWrongSizeFunction · 0.68
TestDecodeSizedIntsFunction · 0.68
TestUnmarshalerFunction · 0.68
ExampleDecodeFunction · 0.68