MCPcopy Index your code
hub / github.com/coder/coder / removeTrailingVersionInfo

Function removeTrailingVersionInfo

codersdk/deployment.go:1393–1399  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

1391}
1392
1393func removeTrailingVersionInfo(v string) string {
1394 // Strip build metadata (everything after '+').
1395 v, _, _ = strings.Cut(v, "+")
1396 // Strip '-devel' suffix if present.
1397 v = strings.TrimSuffix(v, "-devel")
1398 return v
1399}
1400
1401func DefaultDocsURL() string {
1402 version := removeTrailingVersionInfo(buildinfo.Version())

Callers 2

DefaultDocsURLFunction · 0.85

Calls

no outgoing calls

Tested by 1