structproviders

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatalogGetSolvedProblems

func CatalogGetSolvedProblems(path string) ([]generator.Solution, error)

CatalogGetSolvedProblems returns solved problems list, ordered in ascending order by problem ID, from given path. It collects all files inside directory recursively and creates solution structs from them.

func NewCatalogStructProvider

func NewCatalogStructProvider(idType ProblemIdType, baseDir string) *catalogStructProvider

NewCatalogStructProvider returns new catalog provider of solved problems.

Types

type ProblemIdType

type ProblemIdType string
const (
	ProblemIdTypeId   ProblemIdType = "id"
	ProblemIdTypeSlug               = "slug"
)

Jump to

Keyboard shortcuts

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