use go:build in script/imports.txtar

This form has been preferred over +build since Go 1.17.
pull/747/head
Daniel Martí 2 years ago committed by lu4p
parent 414e3b7f70
commit b4fa94e45b

@ -96,13 +96,13 @@ func main() {
fmt.Println(sql.Drivers()[0])
}
-- notag_fail.go --
// +build !buildtag
//go:build !buildtag
package main
var foo int = "should be omitted by -tags"
-- withtag_success.go --
// +build buildtag
//go:build buildtag
package main

Loading…
Cancel
Save