example

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	Convert(Input) Output

	// goverter:map LastName Surname
	ConvertNested(NestedInput) NestedOutput
}

goverter:converter

type Input

type Input struct {
	Name   string
	Nested NestedInput
}

type NestedInput

type NestedInput struct{ LastName string }

type NestedOutput

type NestedOutput struct{ Surname string }

type Output

type Output struct {
	Name   string
	Nested NestedOutput
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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