config

package
v0.0.0-...-9c30cc4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 6 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 {
	Version string

	IsAutoPlay  bool
	IsAutoPatch bool
	IsTorrentOK bool
	// contains filtered or unexported fields
}

Config represents a configuration parse

func New

func New(ctx context.Context, baseName string) (*Config, error)

New creates a new configuration

func (*Config) Save

func (c *Config) Save() error

Save saves the config

func (*Config) Verify

func (c *Config) Verify() error

Verify returns an error if configuration appears off

Jump to

Keyboard shortcuts

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