gochinadns
gochinadns copied to clipboard
Refactor schemaToResolver with option functions
Make schemaToResolver
accept several "option functions" (say, WithTCPOnly()
) . This makes the main logic look simpler.
Originally posted by @cherrot in https://github.com/cherrot/gochinadns/pull/18#discussion_r524859921