app

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppDir      string           // 应用根目录
	ConfDir     string           // 配置目录
	LogDir      string           // 日志目录
	DataDir     string           // 存放session等
	AppConfig   string           // 应用配置文件
	Installed   bool             // 应用是否安装过
	Setting     *setting.Setting // 应用配置
	VersionId   int              // 版本号
	VersionFile string           // 版本号文件
)

Functions

func CreateInstallLock

func CreateInstallLock() error

创建安装锁文件

func GetCurrentVersionId added in v1.2.1

func GetCurrentVersionId() int

获取应用当前版本号, 从版本号文件中读取

func InitEnv

func InitEnv(versionString string)

func IsInstalled

func IsInstalled() bool

判断应用是否已安装

func ToNumberVersion added in v1.2.1

func ToNumberVersion(versionString string) int

把字符串版本号a.b.c转换为整数版本号abc

func UpdateVersionFile added in v1.2.1

func UpdateVersionFile()

更新应用版本号文件

Types

This section is empty.

Jump to

Keyboard shortcuts

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