When it appears
It renders when Starship detects the matching context and its configured conditions are met.
Preview
Rendered from the starting configuration in a representative simulated environment.
starship — preview
via 🐹 v1.2.3
Starting configuration
[golang]
format = "via [$symbol($version )]($style)"
symbol = "🐹 "
style = "bold cyan"Open in the builderThe configuration is compressed into the URL fragment and stays in your browser.
Key options
- formatstring
- The format for the module.
- version_formatstring
- The version format. Available vars are raw, major, minor, & patch
- symbolstring
- A format string representing the symbol of Go.
- stylestring
- The style for the module.
- disabledboolean
- Disables the golang module.
- not_capable_stylestring
- The style for the module when the go directive in the go.mod file does not match the installed Go version.
- detect_extensionsarray
- Which extensions should trigger this module.
- detect_filesarray
- Which filenames should trigger this module.
- detect_foldersarray
- Which folders should trigger this module.
Format variables
- $mod_version
- go version requirement as set in the go directive of go.mod. Will only show if the version requirement does not match the go version.
- $style
- Mirrors the value of option style
- $symbol
- Mirrors the value of option symbol
- $version
- The version of go
Common adjustments
- Tune the detection options if this module appears in the wrong projects or misses the right ones.
- Edit format to reorder its variables or make surrounding text conditional.
- Adjust its style options to fit the palette used by the rest of the prompt.