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 |