config

package
v0.0.0-...-73c03bc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Output             string            `json:"output"`
	Converters         []ConverterDef    `json:"converters"`
	NilPointersForNull bool              `json:"nilPointersForNull"`
	ExternalPackages   []ExternalPackage `json:"externalPackages"`
}

Config represents the automapper configuration

func Load

func Load(path string) (*Config, error)

Load reads and parses the configuration file

type ConverterDef

type ConverterDef struct {
	Name     string `json:"name"`
	Function string `json:"function"`
}

ConverterDef defines a converter function registration

type ExternalPackage

type ExternalPackage struct {
	Alias      string `json:"alias"`
	ImportPath string `json:"importPath"`
	LocalPath  string `json:"localPath"`
}

ExternalPackage defines an external package to include in parsing

Jump to

Keyboard shortcuts

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