Documentation
¶
Index ¶
- func IsNumeric(str string) bool
- func NewStrictJSONDecoder(r io.Reader) *json.Decoder
- func ParseFloat[E Float](s string) (E, error)
- func ParseInt[E signed](s string) (E, error)
- func ParseMemberIDs(ids string) ([]int64, error)
- func ParseOptionalBool(s string) (bool, error)
- func ParseUInt[E unsigned](s string) (E, error)
- func SliceContains[T comparable](needle T, haystack []T) bool
- type Float
- type Integer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStrictJSONDecoder ¶
NewStrictJSONDecoder constructs a new JSON decoder with strict settings.
func ParseFloat ¶
func ParseMemberIDs ¶
ParseMemberIDs is a helper function to parse member IDs for groups and rooms.
func ParseOptionalBool ¶
ParseOptionalBool will return false if the input string is empty,
If the sting is not empty and the parsed value is invalid it will return an error instead.
Otherwise, it will return the correctly parsed bool value.
func SliceContains ¶
func SliceContains[T comparable](needle T, haystack []T) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.