17 lines
350 B
Go
17 lines
350 B
Go
|
package scwversion
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
var (
|
||
|
// VERSION represents the semver version of the package
|
||
|
VERSION = "v1.9.0+dev"
|
||
|
|
||
|
// GITCOMMIT represents the git commit hash of the package, it is configured at build time
|
||
|
GITCOMMIT string
|
||
|
)
|
||
|
|
||
|
// UserAgent returns a string to be used by API
|
||
|
func UserAgent() string {
|
||
|
return fmt.Sprintf("scw/%v", VERSION)
|
||
|
}
|