direct

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Explicit file handler types
	DiffType = "DIFF"

	// Explicit exported symbol handler types
	ExportType = "EXPORT"
	ConstType  = "CONST"
)

Variables

Functions

func Apply

func Apply(overlay map[string]*PackageDirective)

Applies the given config on top of the current configuration

func ParseConfig

func ParseConfig(src []byte) (map[string]*PackageDirective, error)

Parse a given config from source

Types

type ExportDirective

type ExportDirective struct {
	Type    string
	Replace string
}

Directive description for editting definitions that cannot be ported

If a package uses the specified definition we replace it with the contents provided here

type FileDirective

type FileDirective struct {
	Type string
	Path string
}

Directive description for editting a specific file

These directives are used either immediately or if automated porting fails as a means for porting packages using cached (user generated) changes

type PackageDirective

type PackageDirective struct {
	Files   map[string]FileDirective
	Exports map[string]ExportDirective
}

Directives related to a given package

Jump to

Keyboard shortcuts

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