types

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 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 Convergen

type Convergen interface {
	// convergen:map foo bar
	FromTo(*From) *To
}

hoge

!go:generate go run github.com/reedom/convergen

type From

type From struct {
	String    string
	StringPtr *string
	Int       int
	IntPtr    *int
	Int64     int64
	Float64   float64
	Struct    struct {
		Field string
	}
	StructPtr *struct {
		Another string
	}
	Any          any
	AnyPtr       *any
	EmptyIntf    interface{}
	EmptyIntfPtr *interface{}
	Intf         interface{ Func() }
	StrArray     [2]string
	StrArrayPtr  *[2]string
	StrPtrArray  [2]*string
	StrSlice     []string
	StrSlicePtr  *[]string
	StrPtrSlice  []*string
	AnySlice     []any
	Map          map[string]string
	MapPtr       *map[string]string
	Chan         chan int
	ChanPtr      *chan int
	Func         func(int) string
	FuncPtr      *func(int) string
}

type To

type To struct {
	String    string
	StringPtr *string
	Int       int
	IntPtr    *int
	Int64     int64
	Float64   float64
	Struct    struct {
		Field string
	}
	StructPtr *struct {
		Another string
	}
	Any          any
	AnyPtr       *any
	EmptyIntf    interface{}
	EmptyIntfPtr *interface{}
	Intf         interface{ Func() }
	StrArray     [2]string
	StrArrayPtr  *[2]string
	StrPtrArray  [2]*string
	StrSlice     []string
	StrSlicePtr  *[]string
	StrPtrSlice  []*string
	AnySlice     []any
	Map          map[string]string
	MapPtr       *map[string]string
	Chan         chan int
	ChanPtr      *chan int
	Func         func(int) string
	FuncPtr      *func(int) string
}

Jump to

Keyboard shortcuts

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