readme

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderLeetcode = "leetcode"
)

Variables

This section is empty.

Functions

func NewGenerator

func NewGenerator(cfg *Config) (*generator.Generator, error)

Types

type CatalogStructProviderConfig

type CatalogStructProviderConfig struct {
	MapAttribute string `json:"map_attr,omitempty"`
	BaseDir      string `json:"base_dir"`
}

type Config

type Config struct {
	HideUnsolvedProblems bool                 `json:"hide_unsolved"`
	OutputDirectory      string               `json:"output,omitempty"`
	Structure            StructProviderConfig `json:"structure"`
	ProblemSources       []string             `json:"sources"`
	ProvidersCacheDir    string               `json:"problems_cache_dir,omitempty"`
	OverloadTemplatesDir *string              `json:"templates_dir,omitempty"`
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configFile string) error

func (*Config) SetTemplates

func (c *Config) SetTemplates(t *generator.Templates)

type FileReadmeConfig

type FileReadmeConfig struct {
	OutputFileBasename string `json:"output_file_basename"`
}

type StructProviderConfig

type StructProviderConfig struct {
	Catalog *CatalogStructProviderConfig `json:"catalog"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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