()
| 8 | } |
| 9 | |
| 10 | func (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 | |
| 21 | func Read() StructuredVersion { |
| 22 | info, ok := debug.ReadBuildInfo() |
nothing calls this directly
no outgoing calls
no test coverage detected