cue icon indicating copy to clipboard operation
cue copied to clipboard

mod/modfile: split syntax into its own data structure

Open rogpeppe opened this issue 1 year ago • 0 comments

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.

rogpeppe avatar Jun 12 '24 12:06 rogpeppe