InternalsΒΆ

blockdiag run Gosh 0 goimports 0.5 prompt 1 terminate 99 parse 2 go get 3 write 4 goimport 5 go run 6
No Name Description
0 run Gosh User executeted $GOPATH/bin/gosh
1 prompt User is able to input commands
2 parse Gosh parse from inputted command
3 go get Gosh executes go get example.org/sompkg when user inputted import "example.org/somepkg"
4 write Gosh write $tmpdir/gosh-?????????/gosh_tmp.go when user inputted main func (include omitted main)
5 goimport Gosh executes goimport $tmpdir/gosh-?????????/gosh_tmp.go
6 go run Gosh executes go run $tmpdir/gosh-?????????/gosh_tmp.go
99 terminate User inputted Ctrl+D
0.5 goimports Gosh executes go get code.google.com/p/go.tools/cmd/goimport if goimports command is not found