config

package
v0.0.0-...-661f0fa Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(filePath string, data *Config) error

SaveConfig saves the configuration data from a Config instance to the given file path.

Types

type Config

type Config struct {
	SessionTime       binding.Int
	BreakTime         binding.Int
	PushNotifications binding.Bool
}

Config represents the application configuration with Fyne data bindings.

func LoadConfig

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

LoadConfig loads the configuration from the given file path into a Config instance.

func NewConfig

func NewConfig() *Config

NewConfig creates a new instance of Config with initialized data bindings.

Jump to

Keyboard shortcuts

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