builders

package
v1.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SomeStructBuilder

type SomeStructBuilder with_tag.SomeStruct

SomeStructBuilder is an alias of SomeStruct to build SomeStruct with builder-pattern.

func NewSomeStructBuilder

func NewSomeStructBuilder() *SomeStructBuilder

NewSomeStructBuilder creates a new SomeStructBuilder.

func (*SomeStructBuilder) Build

func (b *SomeStructBuilder) Build() (*with_tag.SomeStruct, error)

Build returns built SomeStruct.

func (*SomeStructBuilder) Copy

Copy reassigns the builder struct (behind pointer) to a new pointer and returns it.

func (*SomeStructBuilder) SetSomeSlice

func (b *SomeStructBuilder) SetSomeSlice(someSlice ...string) *SomeStructBuilder

SetSomeSlice sets SomeStruct's SomeSlice.

func (*SomeStructBuilder) SetTheChan

func (b *SomeStructBuilder) SetTheChan() *SomeStructBuilder

SetTheChan will be executed during Build function. It allows defining some properties of SomeStruct at the end of builder in case those would depend on other properties.

func (*SomeStructBuilder) SetValidation

func (b *SomeStructBuilder) SetValidation(validation string) *SomeStructBuilder

SetValidation sets SomeStruct's Validation.

Jump to

Keyboard shortcuts

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