core

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RunCmd   string `json:"run_cmd"`
	BuildCmd string `json:"build_cmd"`
	Lang     string `json:"lang"`
	FileName string `json:"file_name"`
	Template string `json:"template"`
}

func (*Config) GenerateCmd added in v0.6.0

func (c *Config) GenerateCmd(path, fileName string) error

func (*Config) Validate

func (c *Config) Validate() error

type Language added in v0.7.0

type Language struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Task

type Task struct {
	RunCmd   string
	BuildCmd string
	// contains filtered or unexported fields
}

func (*Task) BuildCode

func (t *Task) BuildCode() error

func (*Task) ExecCode

func (t *Task) ExecCode(input string) (result, error)

func (*Task) ExecHandleCode added in v0.5.0

func (t *Task) ExecHandleCode() (result, error)

type TestCase

type TestCase struct {
	ID       int    `toml:"id"`
	In       string `toml:"in"`
	Expected string `toml:"expected"`
}

func (*TestCase) Compare

func (tc *TestCase) Compare(result string) bool

Jump to

Keyboard shortcuts

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