Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobbrewer1 committed Oct 4, 2024
1 parent ac1f01a commit 5a2c1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/joiner/joiner.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p *PersonContactJoiner) Join() (string, []any) {
}

func main() {
jsonStr := `{"name": "john", "age": 25, "email": "[email protected]"}`
const jsonStr = `{"name": "john", "age": 25, "email": "[email protected]"}`

person := new(Person)
if err := json.Unmarshal([]byte(jsonStr), person); err != nil {
Expand Down

0 comments on commit 5a2c1fb

Please sign in to comment.