sample

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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