testcases

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayWrapper added in v0.1.2

type ArrayWrapper [16]byte

type Bar

type Bar struct {
	Map      map[string]byte
	Time     time.Time
	Any      interface{}
	ChanIn   chan<- int
	ChanOut  <-chan int
	Chan     chan int
	Error    error
	NotEmpty NotEmpty
}

type Enumerated

type Enumerated int
const (

	// EnumeratedOne defines a first enumerated type value.
	EnumeratedOne Enumerated
	EnumeratedTwo
)

type ExtensionFields added in v0.1.3

type ExtensionFields = imported.ExtensionFields

type Foo

type Foo struct {
	// ID is the foo field identifier.
	ID         FooID  `json:"id"`
	String     string `custom:"name"`
	CustomName string
	Bool       bool
	Enumerated Enumerated
	Slice      []string
	Float64    float64
	Duration   time.Duration
	Bar        *Bar
}

Foo is the test model that contains multiple field definitions.

type FooAlias added in v0.1.1

type FooAlias Foo

type FooID

type FooID int64

FooID is the custom type wrapper on the Foo identifier.

func (FooID) MarshalText added in v0.1.0

func (f FooID) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler interface.

func (*FooID) UnmarshalText added in v0.1.0

func (f *FooID) UnmarshalText(in []byte) error

UnmarshalText implements encoding.TextUnmarshaler interface.

type FooPtrAlias added in v0.1.1

type FooPtrAlias *Foo

type FooSlice added in v0.1.1

type FooSlice *[3]Foo

type FuncWrapper added in v0.1.2

type FuncWrapper func(w io.Writer) error

func (FuncWrapper) Do added in v0.1.2

func (f FuncWrapper) Do()

type InheritMe

type InheritMe interface {
	Inherited()
}

InheritMe is an interface that will be inherited.

type MultiPointerInlineStruct added in v0.1.2

type MultiPointerInlineStruct ******struct {
	// Field test comment.
	Field string
}

type NotEmpty

type NotEmpty interface {
	Call(ctx context.Context, options ...string) (n int, err error)
	InheritMe
}

type SizeCache added in v0.1.3

type SizeCache = imported.SizeCache

type UnknownFields added in v0.1.3

type UnknownFields = imported.UnknownFields

type WeakFields added in v0.1.3

type WeakFields = imported.WeakFields

type Weird added in v0.1.1

type Weird int

type WeirdStruct added in v0.1.1

type WeirdStruct struct {
	// Name doc.
	Name string
}

WeirdStruct docs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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