Documentation
¶
Index ¶
- func CloseOptimistic(resource io.Closer)
- func GetInterfaceName[T any]() string
- func JoinAsString[T any](arr []T, converter func(val T) string, sep string) string
- func Must(err error)
- func Must2[T any](value T, err error) T
- func Must3[T1 any, T2 any](val1 T1, val2 T2, err error) (T1, T2)
- func NewSpyWriter(writer io.Writer, spyWriter io.Writer) io.Writer
- func Use[T io.Closer](resource T, block func(it T))
- func WrapPanic[T any](block func() T, wrapperFunc func(reason any) any) T
- type ProxyWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseOptimistic ¶
func GetInterfaceName ¶ added in v0.8.0
func JoinAsString ¶
func NewSpyWriter ¶ added in v0.7.13
Types ¶
type ProxyWriter ¶ added in v0.7.13
type ProxyWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.