cue
cue copied to clipboard
mod/modfile: split syntax into its own data structure
Currently the modfile.File type is used directly to marshal and unmarshal the module.cue
contents. However in the future we want to be able to preserve comments and other formatting
that cannot be expressed in the Go data structure. The Go modfile package splits
the syntax from the parsed result and we should probably do the same for the CUE one.