Skip to content

Commit

Permalink
fix(nullstring): add pointer on NullString
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix-X committed May 5, 2022
1 parent 6ddf709 commit 9ffb97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion object/nullString.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (v *NullString) MarshalJSON() ([]byte, error) {
}
}

func (v NullString) UnmarshalJSON(data []byte) error {
func (v *NullString) UnmarshalJSON(data []byte) error {
var s *string
if err := json.Unmarshal(data, &s); err != nil {
return err
Expand Down

0 comments on commit 9ffb97b

Please sign in to comment.