Documentation
¶
Index ¶
- func FilterOptionAbsent[T any](item mo.Option[T], _ int) bool
- func FilterOptionPresent[T any](item mo.Option[T], _ int) bool
- func FromMap[T any, MK comparable, MV any](m map[MK]MV) (*T, error)
- func FromString[T any](str string) (T, error)
- func FromStringOrEmpty[T any](str string) T
- func GetByJSONPath[T any](input any, template string) T
- func GetByJSONPathWithoutConvert(input any, template string) (string, error)
- func IsNumber(str string) bool
- func MapOptionMust(item mo.Option[error], _ int) error
- func MapOptionOrEmpty[T any](item mo.Option[T], _ int) T
- func MapOptionsPresent[T any](items []mo.Option[T]) []T
- func ReadAsJSON(reader io.Reader) (*bytes.Buffer, map[string]any, error)
- func ReadAsJSONWithClose(readCloser io.ReadCloser) (*bytes.Buffer, map[string]any, error)
- func ResultToOption[T any](item mo.Result[T]) mo.Option[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterOptionAbsent ¶ added in v0.0.3
func FilterOptionPresent ¶ added in v0.0.3
func FromString ¶
func FromStringOrEmpty ¶
func GetByJSONPath ¶
func MapOptionsPresent ¶ added in v0.0.3
func ReadAsJSONWithClose ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.