Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit c5a02b5

Browse files
committed
Struct field Ip -> IP
1 parent 332cb05 commit c5a02b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

structs_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,14 +1430,14 @@ func TestPointer2Pointer(t *testing.T) {
14301430
func TestMap_InterfaceTypeWithMapValue(t *testing.T) {
14311431
type A struct {
14321432
Name string `structs:"name"`
1433-
Ip string `structs:"ip"`
1433+
IP string `structs:"ip"`
14341434
Query string `structs:"query"`
14351435
Payload interface{} `structs:"payload"`
14361436
}
14371437

14381438
a := A{
14391439
Name: "test",
1440-
Ip: "127.0.0.1",
1440+
IP: "127.0.0.1",
14411441
Query: "",
14421442
Payload: map[string]string{"test_param": "test_param"},
14431443
}

0 commit comments

Comments
 (0)