Go: proposal: cmd/go: running `go fish` should yield easter egg

Created on 24 Dec 2017  ·  12Comments  ·  Source: golang/go

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.8.1 linux/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (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"

What did you do?

go fish

What did you expect to see?

something funny

What did you see instead?

go: unknown subcommand "fish"
Run 'go help' for usage.
FrozenDueToAge Proposal

Most helpful comment

go home could print you're drunk.

All 12 comments

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.

teach-a-man-to-fish

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,

go fish

We don't want to put jokes into the go command, sorry.

Was this page helpful?
0 / 5 - 0 ratings