version

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PROGRAME_ = "unknown"
)

Functions

func FetchVersionStr

func FetchVersionStr() string

func VersionController

func VersionController(isVersion *bool)

VersionController 版本号控制,输出Version信息到标准输出并且正常结束程序 isVersion,是否输出版本号,常见的一种用法是:

isVersion := flag.Bool("v", false, "print version and exit"), VersionController(programe,isVersion)

Types

This section is empty.

Jump to

Keyboard shortcuts

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