Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment struct {
// Dirpath represents the relative path to the directory that is extracted.
DirPath string
// Pkg represents the output file's package.
Pkg string
// Global represents an option which determines whether to extract global variables and constants.
Global bool
// Funcs represents an option which determines whether to extract function declarations.
Funcs bool
// Sort represents an option which determines whether to sort the extracted objects.
Sort bool
}
Environment represents the xstruct environment.
func (*Environment) Run ¶
func (e *Environment) Run() (string, error)
Run runs xstruct programmatically using the given Environment's YMLPath.
Click to show internal directories.
Click to hide internal directories.