4 ms·
Neat. It could adopt the key:"value" convention of other struct tag libraries (e.g. json:"name" xml:"name") to make it more composable.
by jtruk 11y ago
Neat. It could adopt the key:"value" convention of other struct tag libraries (e.g. json:"name" xml:"name") to make it more composable.
- deleted 11y ago[deleted]
- Spiritus 11y agoAgreed. I think "re" would be a good and succinct key. Or "regex" if you wanna go more explicit.
- endymi0n 11y agohttps://github.com/alexflint/go-restructure/issues/2 https://github.com/alexflint/go-restructure/issues/2
- alexflint 11y agoThanks! This is now merged in.