Discover Packages
github.com/redforks/appinfo
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 6, 2019
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
Documentation
¶
CodeName returns application code name.
InstallID is a random string generated on the first run, later read from
/var/lib/spork/CodeName .id
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.
Version returns application version.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.