commit
ebf56d35bb
@ -301,7 +301,7 @@ func ExampleIsZero() {
|
||||
Enabled bool
|
||||
}
|
||||
|
||||
// Nothing is initalized
|
||||
// Nothing is initialized
|
||||
a := &Server{}
|
||||
isZeroA := IsZero(a)
|
||||
|
||||
|
||||
@ -1430,14 +1430,14 @@ func TestPointer2Pointer(t *testing.T) {
|
||||
func TestMap_InterfaceTypeWithMapValue(t *testing.T) {
|
||||
type A struct {
|
||||
Name string `structs:"name"`
|
||||
Ip string `structs:"ip"`
|
||||
IP string `structs:"ip"`
|
||||
Query string `structs:"query"`
|
||||
Payload interface{} `structs:"payload"`
|
||||
}
|
||||
|
||||
a := A{
|
||||
Name: "test",
|
||||
Ip: "127.0.0.1",
|
||||
IP: "127.0.0.1",
|
||||
Query: "",
|
||||
Payload: map[string]string{"test_param": "test_param"},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user