ex

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FooMapper = data.NewMapper(Foo{})

Functions

This section is empty.

Types

type Bling

type Bling struct{}

func (Bling) Bar

func (b Bling) Bar() int

func (Bling) Wrap

func (hi Bling) Wrap() Foo

type Foo

type Foo struct {
	FooInner "json:\"unwrap\""
}

func (Foo) Empty

func (h Foo) Empty() bool

func (Foo) MarshalJSON

func (h Foo) MarshalJSON() ([]byte, error)

func (*Foo) UnmarshalJSON

func (h *Foo) UnmarshalJSON(data []byte) (err error)

func (Foo) Unwrap

func (h Foo) Unwrap() FooInner

Unwrap recovers the concrete interface safely (regardless of levels of embeds)

type FooInner

type FooInner interface {
	Bar() int
}

+gen wrapper:"Foo,Impl[Bling,*Fuzz],blng,fzz"

type Fuzz

type Fuzz struct{}

func (*Fuzz) Bar

func (f *Fuzz) Bar() int

func (*Fuzz) Wrap

func (hi *Fuzz) Wrap() Foo

Jump to

Keyboard shortcuts

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