github.com/scaleway/scaleway-cli@v1.11.1/pkg/scwversion/version.go (about)

     1  package scwversion
     2  
     3  import "fmt"
     4  
     5  var (
     6  	// VERSION represents the semver version of the package
     7  	VERSION = "v1.11.1"
     8  
     9  	// GITCOMMIT represents the git commit hash of the package, it is configured at build time
    10  	GITCOMMIT string
    11  )
    12  
    13  // UserAgent returns a string to be used by API
    14  func UserAgent() string {
    15  	return fmt.Sprintf("scw/%v", VERSION)
    16  }