dir

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: BSD-3-Clause, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddParser

func AddParser(parser ParseDirFunc)

AddParser to the known parser list

func ParseDir

func ParseDir(dirPath, basePath string, data *parser.DomainMap) error

ParseDir calls all known parser for each directory

func ParseDirRec

func ParseDirRec(dirPath string, exclude []string, data *parser.DomainMap, verbose bool) error

ParseDirRec calls all known parser for each directory

Types

type GetterDef

type GetterDef struct {
	Id      int
	Plural  int
	Context int
	Domain  int
}

GetterDef describes a getter

type GoFile

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

GoFile handles the parsing of one go file

type ParseDirFunc

type ParseDirFunc func(filePath, basePath string, data *parser.DomainMap) error

ParseDirFunc parses one directory

Jump to

Keyboard shortcuts

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