Merge pull request #96 from thedevsaddam/master

Struct field rename
This commit is contained in:
Fatih Arslan 2018-01-23 09:50:59 +03:00 committed by GitHub
commit ebf56d35bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -301,7 +301,7 @@ func ExampleIsZero() {
Enabled bool Enabled bool
} }
// Nothing is initalized // Nothing is initialized
a := &Server{} a := &Server{}
isZeroA := IsZero(a) isZeroA := IsZero(a)

View File

@ -1430,14 +1430,14 @@ func TestPointer2Pointer(t *testing.T) {
func TestMap_InterfaceTypeWithMapValue(t *testing.T) { func TestMap_InterfaceTypeWithMapValue(t *testing.T) {
type A struct { type A struct {
Name string `structs:"name"` Name string `structs:"name"`
Ip string `structs:"ip"` IP string `structs:"ip"`
Query string `structs:"query"` Query string `structs:"query"`
Payload interface{} `structs:"payload"` Payload interface{} `structs:"payload"`
} }
a := A{ a := A{
Name: "test", Name: "test",
Ip: "127.0.0.1", IP: "127.0.0.1",
Query: "", Query: "",
Payload: map[string]string{"test_param": "test_param"}, Payload: map[string]string{"test_param": "test_param"},
} }