Documentation ¶
Index ¶
- Variables
- func CheckErr(err error)
- func CollectCensoredInput() string
- func ErrWithMessage(err error, message string)
- func LoadCodes() error
- func NewSettings() models.Settings
- func OpenConfigFile(fname string) (string, string, error)
- func PrintDebugLn(message string)
- func PrintErrLn(message string)
- func PrintInfoLn(message string)
- func QuitWithMessageIfErr(err error, message string)
- func SetupConfigDir()
- func UpdateCodes() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigDirectory = func() string { userHomeDir, err := os.UserHomeDir() QuitWithMessageIfErr(err, "Unable to locate user's home directory.") return path.Join(userHomeDir, ".config", "lightOtp") }() )
Functions ¶
func CollectCensoredInput ¶
func CollectCensoredInput() string
func ErrWithMessage ¶
func NewSettings ¶
func PrintDebugLn ¶
func PrintDebugLn(message string)
func PrintErrLn ¶
func PrintErrLn(message string)
func PrintInfoLn ¶
func PrintInfoLn(message string)
func QuitWithMessageIfErr ¶
func SetupConfigDir ¶
func SetupConfigDir()
func UpdateCodes ¶
func UpdateCodes() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.