Closed myitcv closed 5 years ago
A go generate code generator that is given the name of a variable declaration and JSON marshals that value to a .json file in the same directory.
go generate
.json
There will be certain limitations to this and plenty of edge cases.
First cut could likely restrict the RHS of the variable declaration to literals. i.e. no expressions, function calls, variables
A
go generate
code generator that is given the name of a variable declaration and JSON marshals that value to a.json
file in the same directory.There will be certain limitations to this and plenty of edge cases.
First cut could likely restrict the RHS of the variable declaration to literals. i.e. no expressions, function calls, variables