java

package
v0.0.0-...-0ea846c Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JavaTemplateFile string

Functions

func RunCompile

func RunCompile(submittedCode string, testRunnerCode string) (string, string, string, error)

RunCompile receives the code submitted by the user and the test runner code defined for this assignment it then processes the Go template containing the Java file with the given code snippets. It then compiles the Java code and runs the test runner code, which creates a file with the test results that is then read and returned

Types

type TemplateData

type TemplateData struct {
	SubmittedCode  string
	TestRunnerCode string
}

TemplateData is the struct that contains the data to be used in the code template

Jump to

Keyboard shortcuts

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