Documentation ¶ Index ¶ type Builder func NewBuilder() *Builder func (b *Builder) Build() Person func (b *Builder) WithAge(age int) *Builder func (b *Builder) WithId(id string) *Builder func (b *Builder) WithName(name string) *Builder type Person Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Builder ¶ type Builder struct { // contains filtered or unexported fields } func NewBuilder ¶ func NewBuilder() *Builder func (*Builder) Build ¶ func (b *Builder) Build() Person func (*Builder) WithAge ¶ func (b *Builder) WithAge(age int) *Builder func (*Builder) WithId ¶ func (b *Builder) WithId(id string) *Builder func (*Builder) WithName ¶ func (b *Builder) WithName(name string) *Builder type Person ¶ type Person interface { Id() string Name() string Age() int } Source Files ¶ View all Source files builder.godto.goentity.go Click to show internal directories. Click to hide internal directories.