From 332cb05730e22347405864ecebc4a0831e789d96 Mon Sep 17 00:00:00 2001 From: Saddam H Date: Sun, 8 Oct 2017 14:51:51 +0600 Subject: [PATCH 1/2] Typo fix --- structs_example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structs_example_test.go b/structs_example_test.go index 329c130..e74099d 100644 --- a/structs_example_test.go +++ b/structs_example_test.go @@ -301,7 +301,7 @@ func ExampleIsZero() { Enabled bool } - // Nothing is initalized + // Nothing is initialized a := &Server{} isZeroA := IsZero(a) From c5a02b518707f50e2f4683c76b51f0fef057c07a Mon Sep 17 00:00:00 2001 From: Saddam H Date: Sun, 8 Oct 2017 14:57:58 +0600 Subject: [PATCH 2/2] Struct field Ip -> IP --- structs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structs_test.go b/structs_test.go index 96a5284..0b6d929 100644 --- a/structs_test.go +++ b/structs_test.go @@ -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"}, }