Closed itsjamie closed 6 years ago
Currently, we could move them into their own subpackage so usage would become edgeresult.Hit
, but that becomes unwieldy with multiple enums.
+1 This would be dope!
Hi! Thank you very much for filling the issue! I've been very busy this year, but now I'm starting to have time again. So I expect to have time to review this soon 😉
@itsjamie I am willing to merge #15 to solve this. Waiting for the author of that PR to make some changes
@alvaroloes Thanks!
Done!
Since the variable name becomes the enum string, it would be nice to be able to define a Prefix or Suffix string that should be removed.
For example, while adding enums for Cloudfront log parsing.
It would be useful to be able to Prefix these enums to be
EdgeResultHit
,EdgeResultRefreshHit
, but keep the generated string as Hit, RefreshHit, for actual parsing.