gen

package
v0.0.0-...-ac70d7f Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(exercise string, j interface{}, t *template.Template) error

Gen generates the exercise cases_test.go file from the relevant canonical-data.json

Types

type Header struct {
	Origin  string
	Commit  string
	Version string
}

Header tells how the test data was generated, for display in the header of cases_test.go

func (Header) String

func (h Header) String() string

Jump to

Keyboard shortcuts

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