|
|
@ -354,7 +354,7 @@ type tailUint struct { |
|
|
|
type tailPrivateFields struct { |
|
|
|
type tailPrivateFields struct { |
|
|
|
A uint |
|
|
|
A uint |
|
|
|
Tail []uint `rlp:"tail"` |
|
|
|
Tail []uint `rlp:"tail"` |
|
|
|
x, y bool |
|
|
|
x, y bool //lint:ignore U1000 unused fields required for testing purposes.
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
type nilListUint struct { |
|
|
|
type nilListUint struct { |
|
|
@ -807,7 +807,6 @@ func ExampleDecode() { |
|
|
|
|
|
|
|
|
|
|
|
type example struct { |
|
|
|
type example struct { |
|
|
|
A, B uint |
|
|
|
A, B uint |
|
|
|
private uint // private fields are ignored
|
|
|
|
|
|
|
|
String string |
|
|
|
String string |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -819,7 +818,7 @@ func ExampleDecode() { |
|
|
|
fmt.Printf("Decoded value: %#v\n", s) |
|
|
|
fmt.Printf("Decoded value: %#v\n", s) |
|
|
|
} |
|
|
|
} |
|
|
|
// Output:
|
|
|
|
// Output:
|
|
|
|
// Decoded value: rlp.example{A:0xa, B:0x14, private:0x0, String:"foobar"}
|
|
|
|
// Decoded value: rlp.example{A:0xa, B:0x14, String:"foobar"}
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func ExampleDecode_structTagNil() { |
|
|
|
func ExampleDecode_structTagNil() { |
|
|
|