examples

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

This is the struct used for examples

Code generated by BuilderGen v0.2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	Name  string
	Phone string
}

type Person

type Person struct {
	ID        int
	Name      string
	Email     *string // Optional field
	PhoneBook []*Contact
	MapVal    map[string]string `json:"map_val"`
	T         nested.Test
}

type PersonBuilder

type PersonBuilder struct {
	ID        int
	Name      string
	Email     *string
	PhoneBook []*Contact
	MapVal    map[string]string `json:"map_val"`
	T         nested.Test
}

func NewPersonBuilder

func NewPersonBuilder(b *Person) *PersonBuilder

func (*PersonBuilder) Build

func (b *PersonBuilder) Build() *Person

func (*PersonBuilder) WithEmail

func (b *PersonBuilder) WithEmail(email *string) *PersonBuilder

func (*PersonBuilder) WithID

func (b *PersonBuilder) WithID(iD int) *PersonBuilder

func (*PersonBuilder) WithMapVal

func (b *PersonBuilder) WithMapVal(mapVal map[string]string) *PersonBuilder

func (*PersonBuilder) WithName

func (b *PersonBuilder) WithName(name string) *PersonBuilder

func (*PersonBuilder) WithPhoneBook

func (b *PersonBuilder) WithPhoneBook(phoneBook []*Contact) *PersonBuilder

func (*PersonBuilder) WithT

func (b *PersonBuilder) WithT(t nested.Test) *PersonBuilder

type UnRelated added in v0.0.5

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

Directories

Path Synopsis
This is the code used to benchmark the performance of BuilderGen
This is the code used to benchmark the performance of BuilderGen
A nested struct in a different package
A nested struct in a different package

Jump to

Keyboard shortcuts

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