doc: references generator does not have build tag (#26277)

This confuses some tools since you end up with a main package with no
main function. I don't really see the point of having the ignore build
tag, since it won't run unless someone explicitly runs it.

Additionally I remove gen.go since we can just have the go generate
command inside of the file.
This commit is contained in:
Keegan Carruthers-Smith 2021-10-20 07:14:17 +02:00 committed by GitHub
parent 9f6088e5b1
commit 5b5ef282ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -1,8 +1,7 @@
//go:build ignore
// +build ignore
package main
//go:generate go run ./doc.go
import (
"io/fs"
"log"

View File

@ -1,3 +0,0 @@
package main
//go:generate go run ./doc.go