Documentation ¶
Overview ¶
Package version represents the current version of the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCompatible ¶
IsCompatible tests if a client and server version are compatible.
func IsCompatibleRange ¶
IsCompatibleRange compares a version to a constraint. It returns true if the version matches the constraint, and false in all other cases.
Types ¶
type BuildInfo ¶
type BuildInfo struct { // Version is the current semver. Version string `json:"version,omitempty"` // GitCommit is the git sha1 GitCommit string `json:"git_commit,omitempty"` // GitTreeState is the state of the git tree GitTreeState string `json:"git_tree_state,omitempty"` }
BuildInfo describes the compile time information.
Click to show internal directories.
Click to hide internal directories.