appinfo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 9 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodeName

func CodeName() string

CodeName returns application code name.

func InstallID

func InstallID() string

InstallID is a random string generated on the first run, later read from /var/lib/spork/CodeName.id

func SetInfo

func SetInfo(name, ver string)

SetInfo set code name and version. Use gen_ver script and git post-commit hook to auto generate version. Must call SetInfo() during app initialization phase, no sync protection to internal variable.

func Version

func Version() string

Version returns application version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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