diff options
author | 2017-02-14 19:23:18 +0000 | |
---|---|---|
committer | 2017-02-14 19:23:18 +0000 | |
commit | 98c86f3f9fb2abcf9adcae5fd94dd6e3d65eca0b (patch) | |
tree | 3dbe155921f88583fbfed34824c4eec4d877aeb3 /coredns.go | |
parent | a5f3cb5fe542f792bd8289daa5fffb6137b81999 (diff) | |
download | coredns-98c86f3f9fb2abcf9adcae5fd94dd6e3d65eca0b.tar.gz coredns-98c86f3f9fb2abcf9adcae5fd94dd6e3d65eca0b.tar.zst coredns-98c86f3f9fb2abcf9adcae5fd94dd6e3d65eca0b.zip |
go gen improvements (#524)
Remove the "gen" directory and move directives_generate.go out of it.
Add a build ignore tag so it isn't build by default. Cleanup the go gen
invocations so there are not seen as package docs.
Simplify the code a bit and don't run go gen twice.
Diffstat (limited to 'coredns.go')
-rw-r--r-- | coredns.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coredns.go b/coredns.go index f03c218e9..17f106566 100644 --- a/coredns.go +++ b/coredns.go @@ -1,5 +1,7 @@ package main +//go:generate go run directives_generate.go + import "github.com/miekg/coredns/coremain" func main() { |