aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/Azure/go-autorest/autorest/version.go
blob: 7a0bf9c9ffb88e336c58a366b6b303feb4790dfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package autorest

import (
    "fmt"
)

const (
    major        = "7"
    minor        = "3"
    patch        = "0"
    tag          = ""
    semVerFormat = "%s.%s.%s%s"
)

var version string

// Version returns the semantic version (see http://semver.org).
func Version() string {
    if version == "" {
        version = fmt.Sprintf(semVerFormat, major, minor, patch, tag)
    }
    return version
}