configurator

package
v3.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator struct {
	FilePath   string
	CurrentDir string
}

func (*Configurator) GetConfig

func (c *Configurator) GetConfig() (*InsteadmanConfig, error)

func (*Configurator) SaveConfig

func (c *Configurator) SaveConfig(config *InsteadmanConfig) error

func (*Configurator) ShareResourcePath

func (c *Configurator) ShareResourcePath(relPath string) string

type InsteadmanConfig

type InsteadmanConfig struct {
	Repositories             []Repository `json:"repositories"`
	InterpreterCommand       string       `json:"interpreter_command"`
	Version                  string       `json:"version"`
	UseBuiltinInterpreter    bool         `json:"use_builtin_interpreter"`
	Lang                     string       `json:"lang"`
	CheckUpdateOnStart       bool         `json:"check_update_on_start"`
	GamesPath                string       `json:"games_path"`
	InsteadManPath           string       `json:"insteadman_path"`
	CalculatedGamesPath      string       `json:"-"`
	CalculatedInsteadManPath string       `json:"-"`
}

func (*InsteadmanConfig) GetInterpreterCommand

func (c *InsteadmanConfig) GetInterpreterCommand() string

type Repository

type Repository struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

Jump to

Keyboard shortcuts

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