Documentation
¶
Index ¶
- func ConvertFrom[T, U any, P interface{ ... }]() func(T) U
- func ErrorFromDecodedResponse[T any](method string, yield func() (T, error)) (resp T, err error)
- func ErrorFromDecodedResponseE(m string, y func() error) (e error)
- func FromOpt[T any, P interface{ ... }](v P) (ret *T)
- func IntoNullable[T, U any, P interface{ ... }](v *U) (ret T)
- func IntoOpt[T, U any, P interface{ ... }](v *U) (ret T)
- func MapSlice[T, U any](src []T, f func(T) U) (ret []U)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFrom ¶
func ConvertFrom[ T, U any, P interface { *U From(*T) }, ]() func(T) U
func ErrorFromDecodedResponse ¶
saclient.IsNotFoundError() に対応させる
func ErrorFromDecodedResponseE ¶
Wrapper to reduce copy & paste
func IntoNullable ¶
func IntoNullable[ T, U any, P interface { *T SetToNull() SetTo(u U) }, ](v *U) (ret T)
generic-ish type cast helper function
Types ¶
Click to show internal directories.
Click to hide internal directories.