Documentation ¶
Index ¶
- type SomeStructBuilder
- func (b *SomeStructBuilder) Build() (*with_tag.SomeStruct, error)
- func (b *SomeStructBuilder) Copy() *SomeStructBuilder
- func (b *SomeStructBuilder) SetSomeSlice(someSlice ...string) *SomeStructBuilder
- func (b *SomeStructBuilder) SetTheChan() *SomeStructBuilder
- func (b *SomeStructBuilder) SetValidation(validation string) *SomeStructBuilder
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 ¶
func (b *SomeStructBuilder) Copy() *SomeStructBuilder
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.
Click to show internal directories.
Click to hide internal directories.