infobloxopen / atlas-app-toolkit

This repository provides common Go utilities and helpers that are reusable from project-to-project. The goal is to prevent code duplication by encouraging teams to use and contribute to toolkit libraries. The toolkit is not a framework. Rather, it is a set of (mostly gRPC-related) plugins and helpers.
Apache License 2.0
99 stars 115 forks source link

bloxid.ID can't be marshaled/unmarshaled to json #372

Open mathewab opened 1 year ago

mathewab commented 1 year ago

bloxid.V0 has all private fields and so can't be marshaled/unmarshaled into json when using it as part of a struct. Implementing MarshalJSON and UnmarshalJSON for it should fix the issue