1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:24:44 -07:00
go/cmd/bundle
Emmanuel T Odeke 423eeaeda5 cmd/bundle: add -tags flag
Adds a "-tags" flag that'll allow build tags
to be passed in and added to the very top of the
generated and bundled file.

For example, when generating h2_bundle.go for
net/http, we'll now be able to do:

    bundle -tags '!nethttpomithttp2' -o h2_bundle.go
                -prefix http2 golang.org/x/net/http2

Updates golang/go#35082

Change-Id: I55edd7227aec8641b60ba560c79e0d50d0692d52
Reviewed-on: https://go-review.googlesource.com/c/tools/+/205017
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-11-04 19:56:21 +00:00
..
testdata cmd/bundle: add -tags flag 2019-11-04 19:56:21 +00:00
.gitignore x/tools/cmd/bundle: include comments inside functions 2017-06-09 02:56:03 +00:00
main_test.go cmd/bundle: add -tags flag 2019-11-04 19:56:21 +00:00
main.go cmd/bundle: add -tags flag 2019-11-04 19:56:21 +00:00