Skip to content

Instantly share code, notes, and snippets.

@ExternalReality
Created May 31, 2018 12:34
Show Gist options
  • Save ExternalReality/a277df0ae5549dea98d64203d0ff7707 to your computer and use it in GitHub Desktop.
Save ExternalReality/a277df0ae5549dea98d64203d0ff7707 to your computer and use it in GitHub Desktop.
warnMissing := func(s string) { logger.Warningf("no %s supplied by provider, using host's %s.", s) }
if !haveNameservers {
warnMissing("name servers")
}
if !haveSearchDomains {
warnMissing("search domains")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment