binary.go 181 B

123456789101112
  1. package version
  2. import (
  3. "fmt"
  4. "runtime"
  5. )
  6. const Binary = "1.2.1"
  7. func String(app string) string {
  8. return fmt.Sprintf("%s v%s (built w/%s)", app, Binary, runtime.Version())
  9. }