samepackage

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: 1 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(source *Input) *Output
}

goverter:converter goverter:output:file ./generated.go goverter:output:package github.com/jmattheis/goverter/example/samepackage

type ConverterImpl

type ConverterImpl struct{}

func (*ConverterImpl) Convert

func (c *ConverterImpl) Convert(source *Input) *Output

type Input

type Input struct{ Name string }

type Output

type Output struct{ Name string }

func ValidateAndConvert

func ValidateAndConvert(source *Input) (*Output, error)

func ValidateAndConvert2

func ValidateAndConvert2(source *Input) (*Output, error)

Jump to

Keyboard shortcuts

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