annotations

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IgnoreDefaultMapping

type IgnoreDefaultMapping struct{}

type MapMapping

type MapMapping struct {
	Target string `annotation:"name=target,required"`
	Source string `annotation:"name=source,required"`
	This   string `annotation:"name=this"`
	Func   string `annotation:"name=func"`
}

type Mapper

type Mapper struct {
	Name string `annotation:"name=name,default={{.TypeName}}Impl"`
}

func (Mapper) BuildName

func (m Mapper) BuildName(typeName string) (string, error)

type Mapping

type Mapping struct {
	Target   string `annotation:"name=target,required"`
	Source   string `annotation:"name=source"`
	This     string `annotation:"name=this"`
	Func     string `annotation:"name=func"`
	Constant string `annotation:"name=const"`
}

type SliceMapping

type SliceMapping struct {
	Target string `annotation:"name=target,required"`
	Source string `annotation:"name=source,required"`
	This   string `annotation:"name=this"`
	Func   string `annotation:"name=func"`
}

Jump to

Keyboard shortcuts

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