config

package
v0.0.0-...-719087c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NumberOfCardsInReview   int      `json:"numberOfCardsInReview"`
	DecksExcludedFromReview []string `json:"decksExcludedFromReview"`
}

func LoadConfigFromFile

func LoadConfigFromFile(filePath string) (*Config, error)

func NewConfig

func NewConfig() *Config

func (*Config) LoadConfig

func (c *Config) LoadConfig() Config

func (*Config) SaveConfig

func (c *Config) SaveConfig(filePath string) error

func (*Config) UpdateConfigFromJSON

func (c *Config) UpdateConfigFromJSON(jsonStr string) error

Jump to

Keyboard shortcuts

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