parser

package
v0.0.0-...-e7bba7f Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	SourceDir:             ".",
	OutputDir:             "output",
	PatternFilesToParse:   "*.html",
	PatternFilesToExclude: "gigo",
	PatternDirsToExclude:  ".idea",
}

Functions

func ParseFiles

func ParseFiles(config Config, yamlFilePath string)

Types

type Config

type Config struct {
	SourceDir             string `yaml:"sourceDir,omitempty"`
	OutputDir             string `yaml:"outputDir,omitempty"`
	PatternFilesToParse   string `yaml:"patternFilesToParse,omitempty"`
	PatternFilesToExclude string `yaml:"patternFilesToExclude,omitempty"`
	PatternDirsToExclude  string `yaml:"patternDirsToExclude,omitempty"`
}

func LoadConfig

func LoadConfig(configYamlFilePath string) Config

type FilesParser

type FilesParser struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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