copygen

package
v0.0.0-...-5c067b0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: AGPL-3.0, MIT-0 Imports: 2 Imported by: 0

Documentation

Overview

Package copygen contains the setup information for copygen generated code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	Arr [16]byte
	S   []string
	M   map[string]bool
	C   chan int
	I   error
	F   func() int
}

Collection represents a type that holds collection field types.

type Copygen

type Copygen interface {
	NoMatchBasic(A Placeholder) (B Placeholder)
	NoMatchBasicAlias(B bool) (B Placeholder)
	NoMatchBasicExternal(A *Placeholder) (A external.Placeholder, B *external.Placeholder, C bool)
	NoMatchArraySimple([16]byte) Collection
	NoMatchSliceSimple([]string) Collection
	NoMatchMap(map[string]bool) Collection
	NoMatchChan(chan int) Collection
	NoMatchInterface(error) Collection
	NoMatchInterfaceAlias(I interface{ Error() string }) *Collection
	NoMatchFunc(func() int) Collection
	NoMatchExternal([]external.Collection) (Struct []external.Collection)

	Basic(bool) bool
	BasicPointer(bool) *bool
	BasicDoublePointer(*bool) **bool
	BasicSimple(Placeholder) Placeholder
	BasicSimplePointer(Placeholder) *Placeholder
	BasicPointerMulti(A *Placeholder) (A *Placeholder, B *Placeholder, C string)
	BasicExternal(*external.Placeholder) external.Placeholder
	BasicExternalMulti(*external.Placeholder) (external.Placeholder, *external.Placeholder)

	Array([16]byte) [16]byte
	ArraySimple(Arr [16]byte) *Collection
	ArrayExternal([16]external.Placeholder) [16]external.Placeholder
	ArrayComplex(Arr [16]map[byte]string) *complex.Collection
	ArrayExternalComplex(Arr [16]map[*external.Collection]string) *complex.ComplexCollection

	Slice([]string) []string
	SlicePointer([]*int) []*int
	SliceSimple(S []string) *Collection
	SliceExternal([]external.Placeholder) []external.Placeholder
	SliceComplex(S []map[string][16]int) *complex.Collection
	SliceExternalComplex(S []map[string]func(*external.Collection) string) *complex.ComplexCollection

	Map(map[string]bool) map[string]bool
	MapSimple(M map[string]bool) *Collection
	MapExternal(map[string]external.Placeholder) map[string]external.Placeholder
	MapComplex(M map[string]interface{ Error() string }) *complex.Collection
	MapExternalComplex(M map[*external.Collection]external.Placeholder) *complex.ComplexCollection

	Chan(chan int) chan int
	ChanSimple(C chan int) *Collection
	ChanExternal(chan external.Placeholder) chan external.Placeholder
	ChanComplex(C chan *[]int) *complex.Collection
	ChanExternalComplex(C chan *[]external.Collection) complex.ComplexCollection

	Interface(interface{}) interface{}
	InterfaceSimple(I error) *Collection
	InterfaceExternal(I error) *external.Collection
	InterfaceComplex(I interface{ A(rune) *int }) *complex.Collection
	InterfaceExternalComplex(I interface {
		A(string) map[*external.Collection]bool
		B() (int, byte)
	}) complex.ComplexCollection

	Func(func() int) func() int
	FuncSimple(F func() int) *Collection
	FuncExternal(func(external.Placeholder) int) func(external.Placeholder) int
	FuncComplex(F func([]string, uint64) *byte) *complex.Collection
	FuncExternalComplex(F func(external.Collection) []string) *complex.ComplexCollection

	EmptyStruct(e struct{}) empty
	Struct(Collection) Collection
	StructExternal(external.Collection) *Collection
}

Copygen defines the functions that are generated.

type Placeholder

type Placeholder bool

Placeholder represents a basic type.

Jump to

Keyboard shortcuts

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