internal

package
v0.0.0-...-c108e79 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewConfFile

func CreateNewConfFile() error

func NewConfAndCache

func NewConfAndCache() (*Config, *Cache, error)

func ReadPwd

func ReadPwd() (string, error)

Types

type Cache

type Cache struct {
	Contest string            `json:"contest" mapstructure:"contest"`
	Cookies map[string]string `json:"cookies" mapstructure:"cookies"`
	Samples contest.Samples   `json:"samples" mapstructure:"samples"`
	Task    string            `json:"task" mapstructure:"task"`
}

func (*Cache) Set

func (cache *Cache) Set(key, value string) error

func (*Cache) Update

func (cache *Cache) Update() error

type ConfFile

type ConfFile struct {
	Cache *Cache  `json:"cache" mapstructure:"cache"`
	Conf  *Config `json:"config" mapstructure:"config"`
}

func (*ConfFile) Read

func (cf *ConfFile) Read() error

type Config

type Config struct {
	Command string `json:"cmd" mapstructure:"cmd"`
	LangID  string `json:"lang_id" mapstructure:"lang_id"`
}

func (*Config) String

func (conf *Config) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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