Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultDirPerms = 0755
View Source
const DefaultFilePerms = 0660
Variables ¶
This section is empty.
Functions ¶
func ConvertSlice ¶
Converts a list of any into a list of the given type.
func ExpandUserDirectory ¶
Expands user specific properties of a directory path. Paths which will be expanded might start with "~" or "%APPDATA%".
func SameSlice ¶
func SameSlice[T comparable](a, b []T) bool
Checks if two slices are the same both in length and there values.
Note: this isn't tested on slices with slices in them and likely isn't accurate for that case.
func StringContains ¶
Capitalization insensitive string.Contains.
Types ¶
type Settings ¶
type Settings struct {
Verbose bool
IsDevelopmentBuild bool
UpdateInterval uint16
DataPath string
LegacyFileForImport string
PreferredDbSavePath string
ShowVersion bool
}
func InitSettings ¶
func InitSettings() Settings
Define CLI arguments and build settings from received arguments.
Click to show internal directories.
Click to hide internal directories.