~juju-qa/ubuntu/yakkety/juju/2.0-rc3-again

« back to all changes in this revision

Viewing changes to src/launchpad.net/goose/version.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-04-24 22:34:47 UTC
  • Revision ID: package-import@ubuntu.com-20130424223447-f0qdji7ubnyo0s71
Tags: upstream-1.10.0.1
ImportĀ upstreamĀ versionĀ 1.10.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package goose
 
2
 
 
3
import (
 
4
        "fmt"
 
5
)
 
6
 
 
7
type VersionNum struct {
 
8
        Major int
 
9
        Minor int
 
10
        Micro int
 
11
}
 
12
 
 
13
func (v *VersionNum) String() string {
 
14
        return fmt.Sprintf("%d.%d.%d", v.Major, v.Minor, v.Micro)
 
15
}
 
16
 
 
17
var VersionNumber = VersionNum{
 
18
        Major: 0,
 
19
        Minor: 1,
 
20
        Micro: 0,
 
21
}
 
22
 
 
23
var Version = VersionNumber.String()