generator

package
v0.0.0-...-6a76b02 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 5 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 {
	DropboxAccessToken         string
	KotlinPackageName          string
	DestinationDirPath         string
	DestinationTestFileDirPath string
}

type Generator

type Generator interface {
	Generate(contestName string, problems []*Problem) error
}

func GetGenerator

func GetGenerator(name string, config Config) (g Generator)

type Problem

type Problem struct {
	Name                string
	TestInputAndOutputs []TestInputAndOutput
}

type TestData

type TestData struct {
	Package     string
	Problem     string
	ContestName string
	InOutList   string
}

type TestFile

type TestFile struct {
	CaseName string
	Data     string
}

type TestInputAndOutput

type TestInputAndOutput struct {
	CaseName string
	Input    string
	Output   string
}

Jump to

Keyboard shortcuts

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