Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotSupported = errors.New("not supported") NotImplemented = errors.New("not implemented") )
View Source
var ( // TODO scala, typescript, erlang, dart, racket SupportedLangs = []Generator{ golangGen, pythonGen, cppGen, rustGen, javaGen, jsGen, phpGen, cGen, csharpGen, rubyGen, swiftGen, kotlinGen, } )
Functions ¶
This section is empty.
Types ¶
type FileOutput ¶
func Generate ¶
func Generate(q *leetcode.QuestionData) ([]FileOutput, error)
type Generator ¶
type Generator interface { Name() string ShortName() string Slug() string // Generate generates code files for the question. Generate(q *leetcode.QuestionData) ([]FileOutput, error) }
func GetGenerator ¶
type Initializer ¶
type LocalTester ¶
type LocalTester interface { Initializer RunTest(q *leetcode.QuestionData) error }
Click to show internal directories.
Click to hide internal directories.