converter

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

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

func New

func New() (converter *Converter, err error)

func NewFromRegister

func NewFromRegister(register register.Register) (converter *Converter)

func NewFromRegisterEntries

func NewFromRegisterEntries(entries []register.Entry) (converter *Converter, err error)

func (*Converter) Cast

func (this *Converter) Cast(in interface{}, from string, to string) (out interface{}, err error)

func (*Converter) CastWithExtension

func (this *Converter) CastWithExtension(in interface{}, from string, to string, extensions []models.ConverterExtension) (out interface{}, err error)

func (*Converter) TryExtension

func (this *Converter) TryExtension(extension models.ConverterExtension, in interface{}) (out interface{}, err error)

func (*Converter) UpdateRegister

func (this *Converter) UpdateRegister(castDescriptions []register.Entry) (err error)

func (*Converter) ValidateExtensions

func (this *Converter) ValidateExtensions(nodes []string, extensions []models.ConverterExtension) (err error)

type InterfaceTypeWrapper added in v0.0.2

type InterfaceTypeWrapper struct {
	InterfaceTypeField interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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