You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
This would be a great feature.
At my case, I'm exporting the Cue file to Json, for then to use 'jsonutil' (https://github.com/bashtian/jsonutils) to generate the Go struct where I load the Json data.
Now, I'm using Cue to deal with configuration files and it's the best tool that I've tried. But I've in mind to use it at data validation.
Interesting, I expected the code generation aspect would be more desirable. So note that in the mean time there is https://godoc.org/cuelang.org/go/encoding/gocode, which gets you part of the way. But that assumes the schema are already defined.
Generating just the structs should be quite straightforward, though. That would also allow you to retain documentation. It would be implemented using the above-mentioned API. This could then be used to implement a command line feature in the cue tool.
Or really any programming language, but Go is a good first target.
The text was updated successfully, but these errors were encountered: