Documentation
¶
Overview ¶
Code generated by gog; DO NOT EDIT. Version: 0.2.2
Index ¶
- func Greet(s string) string
- type Command
- type Dto1
- type Dto1Builder
- func (b *Dto1Builder) Age(age func(string) int) *Dto1Builder
- func (b *Dto1Builder) Build() (Dto1, error)
- func (b *Dto1Builder) Name(name string) *Dto1Builder
- func (b *Dto1Builder) Other(other *Dto2) *Dto1Builder
- func (b *Dto1Builder) Sex(sex bool) *Dto1Builder
- func (b *Dto1Builder) Value(value int64) *Dto1Builder
- type Dto2
- type Dto2Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
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 (*Dto1) ToBuild ¶
func (b *Dto1) ToBuild() *Dto1Builder
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) 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
Click to show internal directories.
Click to hide internal directories.