Documentation ¶
Index ¶
- func Assert[T, A any](t Type[T]) (string, reflect.Kind)
- func AssertStrict[T, A any](t Type[T]) (string, reflect.Kind)
- func FMap[T, A any](seq Seq[T], f func(Type[T]) A) []A
- func FMap1[T, A any](ts Seq[T], fa func(Type[T]) A) A
- func FMap2[T, A, B any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B) (A, B)
- func FMap3[T, A, B, C any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C) (A, B, C)
- func FMap4[T, A, B, C, D any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D)
- func FMap5[T, A, B, C, D, E any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D, E)
- func FMap6[T, A, B, C, D, E, F any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D, E, F)
- func FMap7[T, A, B, C, D, E, F, G any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D, E, F, G)
- func FMap8[T, A, B, C, D, E, F, G, H any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D, E, F, G, H)
- func FMap9[T, A, B, C, D, E, F, G, H, I any](ts Seq[T], fa func(Type[T]) A, fb func(Type[T]) B, fc func(Type[T]) C, ...) (A, B, C, D, E, F, G, H, I)
- type Seq
- func New[T any](names ...string) Seq[T]
- func New1[T, A any]() Seq[T]
- func New2[T, A, B any]() Seq[T]
- func New3[T, A, B, C any]() Seq[T]
- func New4[T, A, B, C, D any]() Seq[T]
- func New5[T, A, B, C, D, E any]() Seq[T]
- func New6[T, A, B, C, D, E, F any]() Seq[T]
- func New7[T, A, B, C, D, E, F, G any]() Seq[T]
- func New8[T, A, B, C, D, E, F, G, H any]() Seq[T]
- func New9[T, A, B, C, D, E, F, G, H, I any]() Seq[T]
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStrict ¶
Assert strict equality of type
Types ¶
type Seq ¶
Heterogenous projection of product type
type Type ¶
Type element of product type, a type safe wrapper of reflect.StructField Type safe wrapper prevents reflect.StructField to be used outside of original type T context.
func ForNameMaybe ¶ added in v1.2.0
Lookup type in heterogenous sequence by name of member
Click to show internal directories.
Click to hide internal directories.