version

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckVersion

func CheckVersion()

func CliCommand

func CliCommand() *cobra.Command

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

func Version

func Version() string

Types

type Tag

type Tag struct {
	Name string `json:"name"`
}

type VersionService

type VersionService interface {
	GetLatestVersion() (string, error)
	GetCurrentVersion() string
	IsLatestVersion() (bool, error)
}

func NewVersionService

func NewVersionService() VersionService

type VersionServiceImpl

type VersionServiceImpl struct {
	// contains filtered or unexported fields
}

func (*VersionServiceImpl) GetCurrentVersion

func (v *VersionServiceImpl) GetCurrentVersion() string

func (*VersionServiceImpl) GetLatestVersion

func (v *VersionServiceImpl) GetLatestVersion() (string, error)

func (*VersionServiceImpl) IsLatestVersion

func (v *VersionServiceImpl) IsLatestVersion() (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL