judge

package
v0.0.0-...-66eb22f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2017 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

judge the output result

Index

Constants

This section is empty.

Variables

View Source
var BuildProcessHaveExit bool
View Source
var BuildStartTime int64

Functions

func AddTask

func AddTask(data map[string]interface{}) error

func Judge

func Judge(raw string, expect string) string

func RunNativeInSandbox

func RunNativeInSandbox(runScript string, runPath string, time int, mem int) error

run native code(compiled via c/c++) in sandbox

Types

type Compile

type Compile struct {
	// contains filtered or unexported fields
}

func (*Compile) NewCompile

func (this *Compile) NewCompile()

func (*Compile) Run

func (this *Compile) Run(code string, language string, id int, sid string) (string, error)

type Info

type Info struct {
	// contains filtered or unexported fields
}

func (*Info) Gather

func (this *Info) Gather(sid string, id int, buildPath string) map[string]interface{}

Jump to

Keyboard shortcuts

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