tip

package
v0.0.0-...-cfb18d5 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintVersion

func PrintVersion()

PrintVersion 打印版本信息至os.Stdout

func Show

func Show(t Tip)

Show 显示tip信息到os.Stdout

Types

type Tip

type Tip struct {
	Banner       string // 横幅
	Name         string // 应用名称
	Version      string // 应用版本
	H            string // 一般为 -h
	ServerTitle  string // 服务标题
	SwaggerTitle string // swagger标题
	ExtranetIP   string // 外网ip地址
	Port         string // 端口
	PidTitle     string // pid标题
	PID          string // pid
	Kill         string // 一般为 Control + C
}

Tip 提示信息

type Version

type Version struct {
	Name          string
	Model         string
	Version       string
	APIVersion    string
	GoVersion     string
	GitCommit     string
	GitFullCommit string
	BuildTime     string
	GOOS          string
	GOARCH        string
	NumCPU        int
}

Version 版本信息

Jump to

Keyboard shortcuts

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