config

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package config stores configuration around

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppName   string
	Favorites []string
}

func NewConfig

func NewConfig() (Config, error)

func (Config) ConfigFolder

func (c Config) ConfigFolder() (string, error)

func (*Config) LoadFavorites

func (c *Config) LoadFavorites() error

func (*Config) SaveFavorites

func (c *Config) SaveFavorites() error

func (Config) SetupConfigFolder

func (c Config) SetupConfigFolder() error

checks and or creates the config folder on startup

Jump to

Keyboard shortcuts

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