File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,17 @@ Methods:
183183
184184### EitherX[ T1, ..., TX] (With X between 3 and 5)
185185
186- ` EitherX ` respresents a value of x possible types. An instance of ` EitherX ` is an instance of either ` T1 ` to ` TX ` .
186+ ` EitherX ` respresents a value of X possible types. For example, an ` Either3 ` value is either ` T1 ` , ` T2 ` or ` T3 ` .
187187
188188Constructors:
189189
190- - ` mo.NewEitherXArgY() ` [ doc] ( https://pkg.go.dev/github.com/samber/mo#NewEither5Arg1 )
190+ - ` mo.NewEitherXArgY() ` [ doc] ( https://pkg.go.dev/github.com/samber/mo#NewEither5Arg1 ) . Eg:
191+ - ` mo.NewEither3Arg1[A, B, C](A) `
192+ - ` mo.NewEither3Arg2[A, B, C](B) `
193+ - ` mo.NewEither3Arg3[A, B, C](C) `
194+ - ` mo.NewEither4Arg1[A, B, C, D](A) `
195+ - ` mo.NewEither4Arg2[A, B, C, D](B) `
196+ - ...
191197
192198Methods:
193199
You can’t perform that action at this time.
0 commit comments