Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatalogGetSolvedProblems ¶
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" )
Click to show internal directories.
Click to hide internal directories.