...

Package version

import "github.com/chaos-mesh/chaos-mesh/pkg/version"
Overview
Index

Overview ▾

func PrintVersionInfo

func PrintVersionInfo(name string)

PrintVersionInfo show version info to Stdout

type Info

Info contains versioning information.

type Info struct {
    GitVersion string `json:"gitVersion"`
    GitCommit  string `json:"gitCommit"`
    BuildDate  string `json:"buildDate"`
    GoVersion  string `json:"goVersion"`
    Compiler   string `json:"compiler"`
    Platform   string `json:"platform"`
}

func Get

func Get() Info

Get returns the overall codebase version. It's for detecting what code a binary was built from.

func (Info) String

func (info Info) String() string

String returns info as a human-friendly version string.