oh-my-posh/segment_golang.go
Jan De Dobbeleer 9875de38d9 feat: julia segment
resolves #157
2020-11-15 07:43:23 +01:00

25 lines
476 B
Go

package main
type golang struct {
language *language
}
func (g *golang) string() string {
return g.language.string()
}
func (g *golang) init(props *properties, env environmentInfo) {
g.language = &language{
env: env,
props: props,
commands: []string{"go"},
versionParam: "version",
extensions: []string{"*.go"},
versionRegex: `go(?P<version>[0-9]+.[0-9]+.[0-9]+)`,
}
}
func (g *golang) enabled() bool {
return g.language.enabled()
}