package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 28, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Imports []string `yaml:"imports"`
Structs []Struct `yaml:"structs"`
}
Config is the top-level config, listing imports (packages) to analyze
and a slice of structs (each having fields).
LoadConfig reads a YAML file from disk and unmarshals it into Config.
Returns an error if the file is invalid or not found.
type Field struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
}
Field represents a single field within a struct:
e.g., name="SomeField", type="string".
type Struct struct {
Name string `yaml:"name"`
Fields []Field `yaml:"fields"`
}
Struct represents a single struct with a name and multiple fields.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.