lang

package
v0.0.0-...-4bbc8ee Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LangC
	LangCpp
	LangGo
	LangJava
	LangPython2
	LangPython3
)

Variables

View Source
var (
	ERROR_NOT_SUPPORT_LANG = errors.New("This language is not supported")
)

Functions

This section is empty.

Types

type C

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

func (*C) CompileArgs

func (c *C) CompileArgs() string

func (*C) CompileBin

func (c *C) CompileBin() string

func (*C) CpuTimeLimit

func (c *C) CpuTimeLimit() string

func (*C) MemoryLimit

func (c *C) MemoryLimit() string

func (*C) NeedCompile

func (c *C) NeedCompile() bool

func (*C) RealTimeLimit

func (c *C) RealTimeLimit() string

func (*C) RunArgs

func (c *C) RunArgs() string

func (*C) RunBin

func (c *C) RunBin() string

type Cpp

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

func (*Cpp) CompileArgs

func (c *Cpp) CompileArgs() string

func (*Cpp) CompileBin

func (c *Cpp) CompileBin() string

func (*Cpp) CpuTimeLimit

func (c *Cpp) CpuTimeLimit() string

func (*Cpp) MemoryLimit

func (c *Cpp) MemoryLimit() string

func (*Cpp) NeedCompile

func (c *Cpp) NeedCompile() bool

func (*Cpp) RealTimeLimit

func (c *Cpp) RealTimeLimit() string

func (*Cpp) RunArgs

func (c *Cpp) RunArgs() string

func (*Cpp) RunBin

func (c *Cpp) RunBin() string

type Golang

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

func (*Golang) CompileArgs

func (golang *Golang) CompileArgs() string

func (*Golang) CompileBin

func (golang *Golang) CompileBin() string

func (*Golang) CpuTimeLimit

func (golang *Golang) CpuTimeLimit() string

func (*Golang) MemoryLimit

func (golang *Golang) MemoryLimit() string

func (*Golang) NeedCompile

func (golang *Golang) NeedCompile() bool

func (*Golang) RealTimeLimit

func (golang *Golang) RealTimeLimit() string

func (*Golang) RunArgs

func (golang *Golang) RunArgs() string

func (*Golang) RunBin

func (golang *Golang) RunBin() string

type Lang

type Lang interface {
	NeedCompile() bool

	CompileBin() string
	CompileArgs() string
	RealTimeLimit() string
	CpuTimeLimit() string
	MemoryLimit() string

	RunBin() string
	RunArgs() string
}

Lang: compile parameters

func NewLang

func NewLang(langType, sourcePath, binaryPath string) (Lang, error)

type Python2

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

func (*Python2) CompileArgs

func (python2 *Python2) CompileArgs() string

func (*Python2) CompileBin

func (python2 *Python2) CompileBin() string

func (*Python2) CpuTimeLimit

func (python *Python2) CpuTimeLimit() string

func (*Python2) MemoryLimit

func (python *Python2) MemoryLimit() string

func (*Python2) NeedCompile

func (python2 *Python2) NeedCompile() bool

func (*Python2) RealTimeLimit

func (python *Python2) RealTimeLimit() string

func (*Python2) RunArgs

func (python *Python2) RunArgs() string

func (*Python2) RunBin

func (python *Python2) RunBin() string

type Python3

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

func (*Python3) CompileArgs

func (python3 *Python3) CompileArgs() string

func (*Python3) CompileBin

func (python3 *Python3) CompileBin() string

func (*Python3) CpuTimeLimit

func (python *Python3) CpuTimeLimit() string

func (*Python3) MemoryLimit

func (python *Python3) MemoryLimit() string

func (*Python3) NeedCompile

func (python3 *Python3) NeedCompile() bool

func (*Python3) RealTimeLimit

func (python *Python3) RealTimeLimit() string

func (*Python3) RunArgs

func (python *Python3) RunArgs() string

func (*Python3) RunBin

func (python *Python3) RunBin() string

Jump to

Keyboard shortcuts

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