animal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Animal

type Animal struct {
	Surname string `default:"n/a"`
	Color   string `default:"red"`
	// contains filtered or unexported fields
}

func NewAnimal

func NewAnimal(opts ...Option) *Animal

type Bounds added in v0.4.0

type Bounds struct {
	X int `json:"x"`
	Y int `json:"y"`
}

type IgnoreThis added in v0.4.0

type IgnoreThis struct {
	A struct {
		X int `json:"x"`
	}
}

go generate would skip this since it's not in our type list above

type Option

type Option func(*Animal)

func Color added in v0.2.0

func Color(x string) Option

func Surname added in v0.2.0

func Surname(x string) Option

type Test added in v0.2.0

type Test struct {
	Name string `default:"bobby"`

	*jen.Statement `default:"jen.Id(\"lol\")"`
	Profiles       []map[string]interface{} `json:"profiles"`
	// contains filtered or unexported fields
}

func NewTest added in v0.2.0

func NewTest(opts ...TestOption) *Test

type TestOption added in v0.2.0

type TestOption func(*Test)

func WithA added in v0.2.0

func WithA(x bytes.Buffer) TestOption

func WithB added in v0.2.0

func WithB(x map[time.Time]*time.Time) TestOption

func WithBounds added in v0.4.0

func WithBounds(x *Bounds) TestOption

func WithC added in v0.2.0

func WithC(x *gob.Encoder) TestOption

func WithName added in v0.2.0

func WithName(x string) TestOption

func WithProfiles added in v0.4.0

func WithProfiles(x []map[string]interface{}) TestOption

func WithStatement added in v0.2.0

func WithStatement(x *jen.Statement) TestOption

Jump to

Keyboard shortcuts

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