MCPcopy Create free account
hub / github.com/Debian/dcs / String

Method String

internal/version/version.go:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10func (sv StructuredVersion) String() string {
11 if len(sv.Revision) > 7 {
12 sv.Revision = sv.Revision[:7]
13 }
14 modifiedSuffix := ""
15 if sv.Modified {
16 modifiedSuffix = " (modified)"
17 }
18 return sv.Revision + modifiedSuffix
19}
20
21func Read() StructuredVersion {
22 info, ok := debug.ReadBuildInfo()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected