Skip to content

Commit f928a38

Browse files
committed
use "go run pkg@version" assuming Go 1.17 or later
Now that Go 1.17 came out four months ago, we can clean up the go:generate comments. We don't need to worry about supporting Go 1.16, as "go generate" only needs to work for the few maintainers. Fixes #41.
1 parent 7eaf35c commit f928a38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

code.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import (
99

1010
//go:generate go run gen.go
1111
//go:generate gofmt -w code_table.go
12-
//go:generate go get golang.org/x/tools/cmd/stringer
13-
//go:generate go run golang.org/x/tools/cmd/stringer -type=Code -linecomment
14-
//go:generate go mod tidy
12+
//go:generate go run golang.org/x/tools/cmd/[email protected] -type=Code -linecomment
1513

1614
// Code describes an integer reserved in the multicodec table, defined at
1715
// github.com/multiformats/multicodec.

0 commit comments

Comments
 (0)