Documentation
¶
Index ¶
- Variables
- func Concat(sep string, values ...string) string
- func ContentType(contentType string) string
- func ConvertTo[T any](input any) (T, error)
- func NewLimitedReader(source io.Reader, limit int) io.Reader
- func ReadCloser(reader io.Reader, closer io.Closer) io.ReadCloser
- type Pair
- type Set
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStreamTooBig = errors.New("stream is too big")
Functions ¶
func ContentType ¶
func NewLimitedReader ¶
NewLimitedReader limits maximum number of bytes to read. If at least one byte read on top of if - ErrStreamTooBig returned.
func ReadCloser ¶
Types ¶
type Set ¶
type Set[T comparable] map[T]struct{}
func NewSet ¶
func NewSet[T comparable](values ...T) Set[T]
Click to show internal directories.
Click to hide internal directories.