~juju-qa/ubuntu/yakkety/juju/juju-1.25.8

« back to all changes in this revision

Viewing changes to src/github.com/joyent/gocommon/version.go

  • Committer: Nicholas Skaggs
  • Date: 2016-12-02 17:28:37 UTC
  • Revision ID: nicholas.skaggs@canonical.com-20161202172837-jkrbdlyjcxtrii2n
Initial commit of 1.25.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// gocommon - Go library to interact with the JoyentCloud
 
3
//
 
4
//
 
5
// Copyright (c) 2013 Joyent Inc.
 
6
//
 
7
// Written by Daniele Stroppa <daniele.stroppa@joyent.com>
 
8
//
 
9
 
 
10
package gocommon
 
11
 
 
12
import (
 
13
        "fmt"
 
14
)
 
15
 
 
16
type VersionNum struct {
 
17
        Major int
 
18
        Minor int
 
19
        Micro int
 
20
}
 
21
 
 
22
func (v *VersionNum) String() string {
 
23
        return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Micro)
 
24
}
 
25
 
 
26
var VersionNumber = VersionNum{
 
27
        Major: 0,
 
28
        Minor: 1,
 
29
        Micro: 0,
 
30
}
 
31
 
 
32
var Version = VersionNumber.String()