Commit fd8d8da
committed
experiment: typed enums with pointer structs.
Implement typed enums in go by adding a pointer field for each enum arm to the
relevant struct, and unmarshalling into the appropriate enum in a custom
UnmarshalJSON method. We preserve the original `Values any` for backwards
compatibility.1 parent 1866144 commit fd8d8da
1 file changed
+74
-1
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments