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: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址