util

package
v0.0.0-...-99ae8b3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mapping = map[string]model.Language{

	"c++": model.Language{
		Name: "c++",
		Compiler: map[string]string{
			"windows": "g++.exe",
			"darwin":  "g++",
			"linux":   "g++",
		},
		Extension:  ".cpp",
		BuildFlags: "-static -DONLINE_JUDGE -lm -s -x c++ -Wl,--stack=268435456 -O2 -std=c++11 -D__USE_MINGW_ANSI_STDIO=0 ",
		OutputFileExtension: map[string]string{
			"windows": ".exe",
			"darwin":  "",
			"linux":   "",
		},
	},
}

Functions

func BinDir

func BinDir(contestID int) string

func BuildFile

func BuildFile(contestDir, problem, lang string) error

func ContestDir

func ContestDir(contestID int) string

func Crawl

func Crawl(contestID int, standings *model.Standings) error

func CrawlTest

func CrawlTest(c chan bool, testDir, index, url string)

func CreateDev

func CreateDev(contestID int) (string, string, string)

func CreateDir

func CreateDir(path string) error

func GetSourceFileExtension

func GetSourceFileExtension(lang string) string

func RunTest

func RunTest(contestDir, problem string, param model.ExecParam) error

func TestDir

func TestDir(contestID int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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