Skip to content

Commit

Permalink
main - add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Дмитрий Гуляченков committed Sep 8, 2023
1 parent 1496bf7 commit eef9f97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions json.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func SetJSONMarshaller(j jsonMarshaller) {
jsonMarshal = j
}

// SetJSONSerializers is a function to set global json.Marshal/json.Unmarshal function
// For faster serialization/deserialization you can use functions from, for instance, https://github.com/goccy/go-json
func SetJSONSerializers(marshaller jsonMarshaller, unmarshaller jsonUnmarshaller) {
jsonMarshal = marshaller
jsonUnmarshal = unmarshaller
Expand Down

0 comments on commit eef9f97

Please sign in to comment.