Go golang
¶
This section is rendered asynchronously by default
Info
Go is a programming language that makes it easy to build simple, reliable, and efficient software.
The golang
section displays the version of the Go.
This section is displayed only when the current directory is within a Go project, meaning:
- Upsearch finds a
go.mod
,Gopkg.toml
,Gopkg.lock
,glide.yaml
file orGodeps
folder - Contains any other file with
.go
extension - The current directory is in the Go workspace defined in
$GOPATH
Using development versions of Go¶
If you are using a development version of Go
, the version uses git commit hash instead. For example:
devel:5efe9a8f11
for development versionv1.11.4
for the release version
Options¶
Variable | Default | Meaning |
---|---|---|
SPACESHIP_GOLANG_SHOW |
true |
Show section |
SPACESHIP_GOLANG_ASYNC |
true |
Render section asynchronously |
SPACESHIP_GOLANG_PREFIX |
$SPACESHIP_PROMPT_DEFAULT_PREFIX |
Section's prefix |
SPACESHIP_GOLANG_SUFFIX |
$SPACESHIP_PROMPT_DEFAULT_SUFFIX |
Section's suffix |
SPACESHIP_GOLANG_SYMBOL |
🐹· |
Symbol displayed before the section |
SPACESHIP_GOLANG_COLOR |
cyan |
Section's color |