Documentation ¶
Index ¶
- Variables
- func GetBool(lookup LookupString, name string, required bool) (bool, bool, error)
- func GetEnum[T comparable](lookup LookupString, name string, required bool, parser func(string) T) (T, bool, error)
- func GetEnumArray[T comparable](fn LookupString, name string, required bool, parser func(string) T) ([]T, bool, error)
- func GetInt(lookup LookupString, name string, required bool) (int, bool, error)
- func GetInt32(lookup LookupString, name string, required bool) (int32, bool, error)
- func GetInt32Array(lookup LookupString, name string, required bool) ([]int32, bool, error)
- func GetInt64(lookup LookupString, name string, required bool) (int64, bool, error)
- func GetString(lookup LookupString, name string, required bool) (string, bool, error)
- func GetStringArray(lookup LookupString, name string, required bool) ([]string, bool, error)
- func GetTime(lookup LookupString, name string, required bool) (time.Time, bool, error)
- func GetUUID(lookup LookupString, name string, required bool) (uuid.UUID, bool, error)
- type File
- type LookupString
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func GetEnum ¶
func GetEnum[T comparable](lookup LookupString, name string, required bool, parser func(string) T) (T, bool, error)
func GetEnumArray ¶
func GetEnumArray[T comparable](fn LookupString, name string, required bool, parser func(string) T) ([]T, bool, error)
func GetInt32Array ¶
func GetStringArray ¶
Types ¶
type File ¶
type File struct { File io.ReadCloser Filename string Header textproto.MIMEHeader Size int64 }
type LookupString ¶
Click to show internal directories.
Click to hide internal directories.