glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL
https://app.quicktype.io
Apache License 2.0
11.93k stars 1.05k forks source link

Consider protected emitPackageDefinitions in GoRenderer #2439

Open adatzer opened 9 months ago

adatzer commented 9 months ago

Hello and thanks for quicktype!

Currently emitPackageDefinitions is private. It would be great if types that extend GoRenderer were able to override emitPackageDefinitions in order for example to extend go imports.

Happy to submit a PR if this is something you'd consider.

inferrinizzard commented 3 months ago

Hi @adatzer , if this is still an issue for you - we'd be happy to accept a PR that updates this