Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidASTObjectType = errors.New("invalid type")
ErrInvalidASTObjectType ast object has a type different from the type declaration.
Functions ¶
func DefaultMarshal ¶
DefaultMarshal default marshal function.
Types ¶
type EnvFiles ¶
type EnvParser ¶
type EnvParser struct {
// contains filtered or unexported fields
}
EnvParser implement envs parsing from .go file.
func NewParserFromASTObjects ¶
NewParserFromASTObjects creates a new parser based on the AST object map.
func NewParserFromFile ¶
NewParserFromFile creates a new parser based on the .go file.
func NewParserFromReader ¶
NewParserFromReader creates a new parser based on data from the io.Reader.
func (EnvParser) FindStructs ¶
FindStructs filters structures leaving only those specified in the argument.
func (EnvParser) ParseFields ¶
ParseFields parse structs to EnvFiles.
Click to show internal directories.
Click to hide internal directories.