zarldev / goenums

Type Safe Enum generator for Go
MIT License
222 stars 10 forks source link

Multiple enums in a single file #22

Open matdurand opened 5 months ago

matdurand commented 5 months ago

Hi,

It doesn't seem like I can generate a bunch of enums if they are declared in a single file.

That's not really a problem to create separate files, but it should probably be mentioned in the readme / or if you have a way to achieve multiple enums per file, even better...

zarldev commented 5 months ago

@matdurand ill have a look into this - it only parses the go file once and when finding the enum does not look for more.

matdurand commented 5 months ago

Not a blocking issue for now ... it's just for convenience. Feel free to close it if you don't have time to account for this.