convert

package
v0.1.69 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatYAML

func FormatYAML(data map[string]any) string

func MapsEqual

func MapsEqual(a, b map[string]any) bool

func ParseYAML

func ParseYAML(data string) (map[string]any, error)

func ValidateConversions

func ValidateConversions(convFolder string) (int, error)

ValidateConversions validates all conversion files in the given directory and returns the latest version found. Returns an error if any file is invalid (e.g., missing or empty conversions array, invalid version).

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func NewConverter

func NewConverter(path string) (*Converter, error)

func (*Converter) ConvertTo

func (c *Converter) ConvertTo(currentVersion, targetVersion int, settings map[string]any) (map[string]any, error)

Jump to

Keyboard shortcuts

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