config

package
v0.0.0-...-7bd7661 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCacheFolder

func GetCacheFolder(chain string) string

Types

type Config

type Config struct {
	WindowState WindowState `json:"windowState"`
}

func (*Config) Get

func (c *Config) Get(group, name, def string) (string, error)

func (*Config) Load

func (c *Config) Load() error

func (*Config) Save

func (c *Config) Save() error

func (*Config) Set

func (c *Config) Set(group, name, value string) error

func (Config) String

func (c Config) String() string

type WindowState

type WindowState struct {
	Width  int `json:"width"`
	Height int `json:"height"`
	X      int `json:"x"`
	Y      int `json:"y"`
}

func (WindowState) String

func (ws WindowState) String() string

Jump to

Keyboard shortcuts

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