-
Notifications
You must be signed in to change notification settings - Fork 541
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from vbatts/versioning
version: more explicit version for comparison
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
package specs | ||
|
||
import "fmt" | ||
|
||
const ( | ||
// VersionMajor is for an API incompatible changes | ||
VersionMajor = 0 | ||
// VersionMinor is for functionality in a backwards-compatible manner | ||
VersionMinor = 1 | ||
// VersionPatch is for backwards-compatible bug fixes | ||
VersionPatch = 0 | ||
) | ||
|
||
// Version is the specification version that the package types support. | ||
const Version = "pre-draft" | ||
var Version = fmt.Sprintf("%d.%d.%d", VersionMajor, VersionMinor, VersionPatch) |