loader

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfigFile

func LoadConfigFile(filePath string) (*config.Config, error)

LoadConfigFile reads the configuration from a file (or searches for one) and unmarshals it into a Config struct.

func LoadGoFile

func LoadGoFile(filePath string) (*goast.File, *gotoken.FileSet, error)

LoadGoFile loads a single Go source file and returns its AST and FileSet.

func LoadGoFileConfig

func LoadGoFileConfig(filePath string) (*config.Config, error)

LoadGoFileConfig loads a single Go source file, parses its directives, and returns a Config object containing only those directives.

func LoadGoFilesConfigs

func LoadGoFilesConfigs(filePaths []string) (map[string]*config.Config, error)

LoadGoFilesConfigs loads multiple Go source files, parses their directives, and returns a map of file paths to their respective Config objects.

Types

This section is empty.

Jump to

Keyboard shortcuts

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