sample

package
v1.0.0-beta.0...-639e5ae Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtSampleIn  = ".in"
	ExtSampleOut = ".out"

	SampleDir = "samples"
)

Variables

This section is empty.

Functions

func CntInputs

func CntInputs(dir string) (int, error)

CntInputs counts the number of sample input files.

func Name

func Name(id int, ext string) string

Name returns the name of the sample input or output file with the specified id.

func WriteInEditor

func WriteInEditor(dir string, id int) error

Types

type Set

type Set struct {
	In  string
	Out string
}

func (Set) Write

func (s Set) Write(dir string, id int, perm fs.FileMode) error

Jump to

Keyboard shortcuts

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