cmd

package
v0.0.0-...-ae1477a Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

gomod.go contains the `gomod` subcommand logic, used to check the go version in go.mod files.

Package cmd contains the logic for the various sub-commands. root.go represents the main command and contains common flags and setup.

testfiles.go contains the logic for the test_files subcommand, used to check the test.files values in exercise .meta/config.json files.

Index

Constants

This section is empty.

Variables

View Source
var EmptyJson = []string{
	`"[^"]*":null,`,
	`"[^"]*":\[\],`,
	`"[^"]*":"",`,
	`,"[^"]*":null`,
	`,"[^"]*":\[\]`,
	`,"[^"]*":""`,
}

Patterns to strip from JSON output.

Functions

func Execute

func Execute()

Types

type ExerciseConfigFile

type ExerciseConfigFile struct {
	Authors      []string `json:"authors"`
	Contributors []string `json:"contributors"`
	Files        struct {
		Solution    []string `json:"solution"`
		Test        []string `json:"test"`
		Example     []string `json:"example"`
		Editor      []string `json:"editor"`
		Invalidator []string `json:"invalidator"`
	} `json:"files"`
	Blurb      string `json:"blurb"`
	Source     string `json:"source"`
	Source_url string `json:"source_url"`
}

type ExerciseData

type ExerciseData struct {
	Slug string
	Type string
	Path string
}

func (ExerciseData) Check

func (e ExerciseData) Check() error

Jump to

Keyboard shortcuts

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