Versions in this module Expand all Collapse all v1 v1.0.0 Jun 1, 2024 v0 v0.3.0 Mar 12, 2024 v0.2.1 Mar 11, 2024 v0.2.0 Feb 22, 2024 Changes in this version + type Embedded struct + type Embedded2 struct + type Embedded3 struct + type Embedded4 struct + type Embedded5 struct + type Embedded6 struct + type Embedded7 struct + type Embedded8 struct type User + E3 Embedded3 + E4 *Embedded4 + E7 Embedded7 + E8 *Embedded8 type UserOption + func WithE7(e7 Embedded7) UserOption + func WithE8(e8 *Embedded8) UserOption + func WithEmbedded5(embedded5 Embedded5) UserOption + func WithEmbedded6(embedded6 *Embedded6) UserOption v0.1.0 Feb 22, 2024 Changes in this version + type GenericExample struct + A T + B U + C V + D string + func NewGenericExample[T any, U comparable, V ~int](a T, opts ...GenericExampleOption[T, U, V]) *GenericExample[T, U, V] + type GenericExampleOption func(*GenericExample[T, U, V]) + func WithB[T any, U comparable, V ~int](b U) GenericExampleOption[T, U, V] + func WithC[T any, U comparable, V ~int](c V) GenericExampleOption[T, U, V] + func WithD[T any, U comparable, V ~int](d string) GenericExampleOption[T, U, V] v0.0.5 Sep 27, 2023 Changes in this version + type Address struct + City string + Street string + type User struct + ArrayField [4]int + ChanField chan int + ComplexFuncField func(a int) + ComplexFuncFieldV2 func() int + ComplexFuncFieldV3 func(a int) int + ComplexFuncFieldV4 func(a int) (int, error) + Email string + EmptyStructFiled struct{} + MapField map[string]int + PtrField *int + SimpleFuncField func() + SliceField []int + ThirdPartyField third_party.ThirdParty + Username string + func NewUser(opts ...UserOption) *User + type UserOption func(*User) + func WithAddress(address Address) UserOption + func WithArrayField(arrayField [4]int) UserOption + func WithChanField(chanField chan int) UserOption + func WithComplexFuncField(complexFuncField func(a int)) UserOption + func WithComplexFuncFieldV2(complexFuncFieldV2 func() int) UserOption + func WithComplexFuncFieldV3(complexFuncFieldV3 func(a int) int) UserOption + func WithComplexFuncFieldV4(complexFuncFieldV4 func(a int) (int, error)) UserOption + func WithEmail(email string) UserOption + func WithEmptyStructFiled(emptyStructFiled struct{}) UserOption + func WithError(error error) UserOption + func WithMapField(mapField map[string]int) UserOption + func WithPtrField(ptrField *int) UserOption + func WithSimpleFuncField(simpleFuncField func()) UserOption + func WithSliceField(sliceField []int) UserOption + func WithThirdPartyField(thirdPartyField third_party.ThirdParty) UserOption + func WithUsername(username string) UserOption