config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxFilenameLength = 200

	MinWidth  = 2
	MinHeight = 2
	MaxWidth  = 10
	MaxHeight = 7
	MaxCount  = MaxWidth*MaxHeight - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug   bool   `json:"debug"`
	Version string `json:"version"`

	Data   string `json:"data"`
	Game   string `json:"game"`
	Cache  string `json:"cache"`
	Result string `json:"result"`

	CardImagePath       string `json:"cardImagePath"`
	DeckImagePath       string `json:"deckImagePath"`
	CollectionImagePath string `json:"collectionImagePath"`
	GameImagePath       string `json:"gameImagePath"`
}

func Get

func Get(debugFlag bool, version string) *Config

func (*Config) Games

func (c *Config) Games() string

func (*Config) Results

func (c *Config) Results() string

func (*Config) SetDataPath

func (c *Config) SetDataPath(dataPath string)

SetDataPath For tests only!!!

Jump to

Keyboard shortcuts

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