config

package
v0.0.0-...-670fffb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure() error

func CreateConfigDir

func CreateConfigDir() error

func CreateDefaultConfig

func CreateDefaultConfig() error

func GetConfigFilePath

func GetConfigFilePath() string

func GetConfigFolderPath

func GetConfigFolderPath() string

func GetFullOnlineJudgeName

func GetFullOnlineJudgeName(OJ string) string

func GetHost

func GetHost(OJ string) string

func IsConfigDirExist

func IsConfigDirExist() bool

func IsConfigExist

func IsConfigExist() bool

func SaveConfig

func SaveConfig(cfg Configuration) error

func SetContest

func SetContest(contestId string) error

func SetOnlineJudge

func SetOnlineJudge(OJ string) error

Types

type Configuration

type Configuration struct {
	Workspace          string
	CompilationCommand string
	CompilationArgs    string
	CurrentContestId   string
	OJ                 string
	Host               string
	TemplatePath       string
	Author             string
	SrcDir             string
	TestDir            string
}

func GetConfig

func GetConfig() (Configuration, error)

Jump to

Keyboard shortcuts

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