currentVersion returns the compiled-in release version. Wrapped so the rest of the package depends only on a string and stays trivially testable.
()
| 5 | // currentVersion returns the compiled-in release version. Wrapped so the rest |
| 6 | // of the package depends only on a string and stays trivially testable. |
| 7 | func currentVersion() string { |
| 8 | return version.Version |
| 9 | } |