Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.8.1 linux/amd64
Yes
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/eric/goworkspace"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build035356342=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
go fish
something funny
go: unknown subcommand "fish"
Run 'go help' for usage.
I support this.
go home
could print you're drunk
.
This needs to happen
I suppose the correct grammar should be go fishing
Bike shedding, but my suggestion for joke text output is below.
go: unknown subcommand "fish"
Run 'go help' for usage.
go fish
could redirect to the tour.
My suggestion would be that it displays a random playing card, like "♠ A"
>go fish
♠ A
My sense of humor is unfortunately too simple-minded to comprehend this particular comedy.
Perhaps the command go fish -v
should explain the output to the laymen so that they may too froth in the purposeless but self-satisfying mirth.
I would expect -v
to spell out a card name, like "ace of spades" instead of "♠ A", while -h
would provide an explanation
go fish --desired-card-list={00000000-0000-0000-0000-000000000000},{00000000-0000-0000-0000-000000000001} \
--desired-card-list-input-type=GUID \
--output XML \
--color=/dev/moodring \ # save for Go2.0 or when window implements /dev
--broadcast=wss:///golang.org/fish/room/{EFF1000-0040-0000-0000-000044000220} # share the joke with your friends
-mmmmmmm # each 'm' increases mirth level
Okay, I created patch.
diff --git a/src/cmd/go/main.go b/src/cmd/go/main.go
index b7e4034152..0ca9d85380 100644
--- a/src/cmd/go/main.go
+++ b/src/cmd/go/main.go
@@ -82,6 +82,15 @@ func main() {
help.Help(args[1:])
return
}
+ if args[0] == "fish" {
+ fmt.Println("" +
+ " ∧_∧ /⌒\\n" +
+ "(〃・ω・)/0 \\n" +
+ " ヽ つ@ \\n" +
+ " (ノヽ_) \\n" +
+ " ̄ ̄ ̄ ̄ ̄ ̄| \")
+ return
+ }
// Diagnose common mistake: GOPATH==GOROOT.
// This setting is equivalent to not setting GOPATH at all,
We don't want to put jokes into the go command, sorry.
Most helpful comment
go home
could printyou're drunk
.