Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs about package with {} #37247

Closed
islishude opened this issue Feb 16, 2020 · 2 comments
Closed

docs about package with {} #37247

islishude opened this issue Feb 16, 2020 · 2 comments
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge

Comments

@islishude
Copy link
Contributor

go help packages has no document about package with {}

$ cat go.mod
module github.com/user/repo

go 1.13
$ cat test-cli/main.go
package main

func main() {
	println("cli")
}
$ cat testd/main.go
package main

func main() {
	println("daemon")
}
$ # we can build with {}
$ mkdir -p dist && go build -o dist github.com/user/repo/test{cli,d}
@gopherbot gopherbot added the Documentation Issues describing a change to documentation. label Feb 16, 2020
@seankhliao
Copy link
Member

that is a shell feature, not specific to go

@islishude
Copy link
Contributor Author

thanks @seankhliao

@golang golang locked and limited conversation to collaborators Feb 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Issues describing a change to documentation. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants