Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CliCommand ¶
func GetGitModelUrl ¶
func GetGitModelUrl() string
func GetLatestVersionFromGit ¶
func GetLatestVersionFromGit() string
func GetLatestVersionInfo ¶
func GetLatestVersionInfo() string
func GetVersion ¶
func GetVersion() string
func GetVersionInfo ¶
func GetVersionInfo() string
func GetVersionInfoWithLatestAndCheck ¶
func GetVersionInfoWithLatestAndCheck() string
Types ¶
type Service ¶ added in v1.2.0
type Service interface {
GetLatestVersion() (string, error)
GetCurrentVersion() string
IsLatestVersion() (bool, error)
}
func NewVersionService ¶
func NewVersionService() Service
type ServiceImpl ¶ added in v1.2.0
type ServiceImpl struct {
// contains filtered or unexported fields
}
func (*ServiceImpl) GetCurrentVersion ¶ added in v1.2.0
func (v *ServiceImpl) GetCurrentVersion() string
func (*ServiceImpl) GetLatestVersion ¶ added in v1.2.0
func (v *ServiceImpl) GetLatestVersion() (string, error)
func (*ServiceImpl) IsLatestVersion ¶ added in v1.2.0
func (v *ServiceImpl) IsLatestVersion() (bool, error)
Click to show internal directories.
Click to hide internal directories.