github.com/ipld/go-ipld-prime@v0.21.0/schema/gen/go/README_wishes.md (about) 1 wishes and dreams of other things that could be 2 =============================================== 3 4 ### minimal gen for regular code 5 6 (In other short words: gen without the monomorphization.) 7 8 It'd be neat to have a mode that generates all public fields (shrugging on immutability), 9 and can also toggle off generating all the data model Node interface satisfaction methods. 10 This would let us use IPLD Schemas to define types (including enums and unions) and get Golang code out, 11 and easily use it in programs even where we don't particularly care about the Node interface. 12 (E.g., suppose we want an enum or a union type -- which Go doesn't naturally have -- but aren't going to use it 13 for serialization or anything else. We've already got a lot of codegen here; why not make it help there too?) 14 15 It's unclear if we can load that much into this gen project, or if it'd be easier to make another one for this. 16 The output code would definitely be substantially structurally different; 17 and it would also tend to be useless/silly to generate different parts of a type system in each of the different modes, 18 so it's pretty likely that any practical user story would involve different process invocations to use them anyway.