~nskaggs/+junk/xenial-test

« back to all changes in this revision

Viewing changes to src/github.com/Azure/azure-sdk-for-go/arm/storage/version.go

  • Committer: Nicholas Skaggs
  • Date: 2016-10-24 20:56:05 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161024205605-z8lta0uvuhtxwzwl
Initi with beta15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package storage
 
2
 
 
3
// Copyright (c) Microsoft and contributors.  All rights reserved.
 
4
//
 
5
// Licensed under the Apache License, Version 2.0 (the "License");
 
6
// you may not use this file except in compliance with the License.
 
7
// You may obtain a copy of the License at
 
8
// http://www.apache.org/licenses/LICENSE-2.0
 
9
//
 
10
// Unless required by applicable law or agreed to in writing, software
 
11
// distributed under the License is distributed on an "AS IS" BASIS,
 
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
//
 
14
// See the License for the specific language governing permissions and
 
15
// limitations under the License.
 
16
//
 
17
// Code generated by Microsoft (R) AutoRest Code Generator 0.12.0.0
 
18
// Changes may cause incorrect behavior and will be lost if the code is
 
19
// regenerated.
 
20
 
 
21
import (
 
22
        "fmt"
 
23
)
 
24
 
 
25
const (
 
26
        major = "0"
 
27
        minor = "3"
 
28
        patch = "0"
 
29
        // Always begin a "tag" with a dash (as per http://semver.org)
 
30
        tag             = "-beta"
 
31
        semVerFormat    = "%s.%s.%s%s"
 
32
        userAgentFormat = "Azure-SDK-for-Go/%s;Package arm/%s;API %s"
 
33
)
 
34
 
 
35
// UserAgent returns the UserAgent string to use when sending http.Requests.
 
36
func UserAgent() string {
 
37
        return fmt.Sprintf(userAgentFormat, Version(), "storage", "2015-06-15")
 
38
}
 
39
 
 
40
// Version returns the semantic version (see http://semver.org) of the client.
 
41
func Version() string {
 
42
        return fmt.Sprintf(semVerFormat, major, minor, patch, tag)
 
43
}