appPref

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package appPref provides path retrievers for Lominus preferences files.

Index

Constants

View Source
const PREFERENCES_FILE_NAME = lominus.PREFERENCES_FILE_NAME

Variables

This section is empty.

Functions

func GetPreferencesPath

func GetPreferencesPath() (string, error)

GetJwtPath returns the file path to user's preferences.

func SavePreferences added in v1.2.0

func SavePreferences(filePath string, preferences Preferences) error

SavePreferences saves the user's preferences data onto local storage.

Types

type Preferences

type Preferences struct {
	Directory string
	Frequency int
	LogLevel  string
}

Preferences struct describes the data being stored in the user's preferences file.

func LoadPreferences added in v1.2.0

func LoadPreferences(filePath string) (Preferences, error)

LoadPreferences loads the user's preferences data from local storage.

Jump to

Keyboard shortcuts

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