Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NAME string VERSION = "0.0.0" BUILDTIME string GITCOMMIT string GODEPS string )
exported variables
Functions ¶
Types ¶
type Version ¶
type Version struct { Name string `json:"name,omitempty"` Version string `json:"version"` GoVersion string `json:"goversion"` BuildTime string `json:"buildtime,omitempty"` GitCommit string `json:"gitcommit,omitempty"` Godeps interface{} `json:"godeps,omitempty"` }
Version contains info for Get response
func Get ¶
func Get() (ver Version)
Get return Version info
Example ¶
package main import ( "fmt" "github.com/tsaikd/KDGoLib/version" ) func main() { ver := version.Get() fmt.Println(ver.Version) }
Output: 0.0.1
Click to show internal directories.
Click to hide internal directories.