pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: MIT Imports: 10 Imported by: 0

README

/pkg

外部应用程序可以使用的库代码。其他项目将会导入这些库来保证项目可以正常运行,所以在将代码放在这里前,一定要三思而行。

Documentation

Overview

Package pkg @Description: 外部应用程序可以使用的库代码

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppHost

func AppHost() string

func AppID

func AppID() string

AppID get appID

func AppInstance

func AppInstance() string

func AppLogDir

func AppLogDir() string

func AppMode

func AppMode() string

func AppRegion

func AppRegion() string

func AppVersion

func AppVersion() string

AppVersion get buildAppVersion

func AppZone

func AppZone() string

func BuildHost

func BuildHost() string

BuildHost get buildHost

func BuildTime

func BuildTime() string

BuildTime get buildTime

func BuildUser

func BuildUser() string

BuildUser get buildUser

func GoVersion

func GoVersion() string

GoVersion get go version

func HostName

func HostName() string

HostName get host name

func InitEnv

func InitEnv()

func LogDir

func LogDir() string

func Name

func Name() string

Name gets application name.

func OxVersion

func OxVersion() string

OxVersion get oxVersion

func PrintVersion

func PrintVersion()

PrintVersion @Description: 打印格式化后的版本信息

func SetAppHost

func SetAppHost(host string)

func SetAppID

func SetAppID(s string)

SetAppID set appID

func SetAppInstance

func SetAppInstance(instance string)

func SetAppLogDir

func SetAppLogDir(logDir string)

func SetAppMode

func SetAppMode(mode string)

func SetAppRegion

func SetAppRegion(region string)

func SetAppZone

func SetAppZone(zone string)

func SetBuildTime

func SetBuildTime(param string)

SetBuildTime set buildTime

func SetName

func SetName(s string)

SetName set app anme

func StartTime

func StartTime() string

StartTime get start time

Types

This section is empty.

Jump to

Keyboard shortcuts

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