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

Commit

Permalink
Merge pull request #96 from thedevsaddam/master
Browse files Browse the repository at this point in the history
Struct field rename
  • Loading branch information
fatih authored Jan 23, 2018
2 parents cb93195 + c5a02b5 commit ebf56d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion structs_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func ExampleIsZero() {
Enabled bool
}

// Nothing is initalized
// Nothing is initialized
a := &Server{}
isZeroA := IsZero(a)

Expand Down
4 changes: 2 additions & 2 deletions structs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}
Expand Down

0 comments on commit ebf56d3

Please sign in to comment.