musttag icon indicating copy to clipboard operation
musttag copied to clipboard

Support conditions in tags

Open ArtAndreev opened this issue 2 years ago • 1 comments

I wanted to add envconfig tag as explicit tag required for function Process:

- name: github.com/kelseyhightower/envconfig.Process
  tag: envconfig
  arg-pos: 1

As it stated in README.md, tag ignored is used, when field must not be processed.

So there is no way to define that either envconfig or ignored must be added to struct.

ArtAndreev avatar Mar 24 '23 14:03 ArtAndreev

I understood your use case, will try to implement the feature.

tmzane avatar Mar 25 '23 21:03 tmzane