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

Commit ebf56d3

Browse files
authored
Merge pull request #96 from thedevsaddam/master
Struct field rename
2 parents cb93195 + c5a02b5 commit ebf56d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

structs_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func ExampleIsZero() {
301301
Enabled bool
302302
}
303303

304-
// Nothing is initalized
304+
// Nothing is initialized
305305
a := &Server{}
306306
isZeroA := IsZero(a)
307307

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)