Help us shape the future of Go! Take the 2026 Go Developer Survey

example

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Code generated by gog; DO NOT EDIT. Version: 0.2.2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Greet

func Greet(s string) string

Greet is ignored

Types

type Command added in v0.2.0

type Command struct {
	// contains filtered or unexported fields
}

gog:record

func MustNewCommand added in v0.2.2

func MustNewCommand(
	id vo.FooID,
) Command

func NewCommand added in v0.2.0

func NewCommand(
	id vo.FooID,
) (Command, error)

func (Command) Id added in v0.2.0

func (c Command) Id() vo.FooID

func (Command) IsZero added in v0.2.0

func (c Command) IsZero() bool

func (Command) String added in v0.2.0

func (c Command) String() string

type Dto1

type Dto1 struct {
	// contains filtered or unexported fields
}

Dto1 is the base for the generating the builder

gog:allArgsConstructor gog:builder

func MustNewDto1 added in v0.2.2

func MustNewDto1(
	age func(string) int,
	name string,
	value int64,
	sex bool,
	other *Dto2,
) Dto1

func NewDto1

func NewDto1(
	age func(string) int,
	name string,
	value int64,
	sex bool,
	other *Dto2,
) (Dto1, error)

func (Dto1) Age

func (d Dto1) Age() func(string) int

func (Dto1) IsZero added in v0.2.2

func (d Dto1) IsZero() bool

func (Dto1) Name

func (d Dto1) Name() string

func (Dto1) Other

func (d Dto1) Other() *Dto2

func (Dto1) Sex

func (d Dto1) Sex() bool

func (Dto1) String added in v0.2.2

func (d Dto1) String() string

func (*Dto1) ToBuild

func (b *Dto1) ToBuild() *Dto1Builder

func (Dto1) Value

func (d Dto1) Value() int64

type Dto1Builder

type Dto1Builder struct {
	// contains filtered or unexported fields
}

func NewDto1Builder

func NewDto1Builder(name string) *Dto1Builder

func (*Dto1Builder) Age

func (b *Dto1Builder) Age(age func(string) int) *Dto1Builder

func (*Dto1Builder) Build

func (b *Dto1Builder) Build() (Dto1, error)

func (*Dto1Builder) Name

func (b *Dto1Builder) Name(name string) *Dto1Builder

func (*Dto1Builder) Other

func (b *Dto1Builder) Other(other *Dto2) *Dto1Builder

func (*Dto1Builder) Sex

func (b *Dto1Builder) Sex(sex bool) *Dto1Builder

func (*Dto1Builder) Value

func (b *Dto1Builder) Value(value int64) *Dto1Builder

type Dto2

type Dto2 struct {
	// contains filtered or unexported fields
}

Dto2 for a second builder

gog:builder

func (Dto2) IsZero added in v0.2.2

func (d Dto2) IsZero() bool

func (Dto2) String added in v0.2.2

func (d Dto2) String() string

func (Dto2) Things added in v0.2.0

func (d Dto2) Things() []int

func (*Dto2) ToBuild

func (b *Dto2) ToBuild() *Dto2Builder

type Dto2Builder

type Dto2Builder struct {
	// contains filtered or unexported fields
}

func NewDto2Builder

func NewDto2Builder() *Dto2Builder

func (*Dto2Builder) Build

func (b *Dto2Builder) Build() Dto2

func (*Dto2Builder) Things added in v0.2.0

func (b *Dto2Builder) Things(things []int) *Dto2Builder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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