Documentation
¶
Index ¶
- func CSV(data string) ([][]string, error)
- func Duration(s string) (time.Duration, error)
- func DurationOr(s string, defaultValue time.Duration) time.Duration
- func Env[T any](prefix string) (T, []validate.FieldError)
- func Float64(s string) (float64, error)
- func Float64Or(s string, defaultValue float64) float64
- func Form[T any](values url.Values) (T, []validate.FieldError)
- func Int(s string) (int, error)
- func IntOr(s string, defaultValue int) int
- func JSON[T any](data string) (T, []validate.FieldError)
- func JSONLines(data string) []string
- func Lines(data string) []string
- func Query(s string) (url.Values, error)
- func URL(s string) (*url.URL, error)
- func WriteCSV(path string, rows [][]string) error
- func WriteCSVRecords(path string, records CSVRows) error
- func YAML[T any](data string) (T, []validate.FieldError)
- type CSVRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationOr ¶ added in v0.48.1
func WriteCSVRecords ¶ added in v0.15.0
Types ¶
Click to show internal directories.
Click to hide internal directories.