parse

package
v0.17.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSV added in v0.3.0

func CSV(data string) ([][]string, error)

func Duration added in v0.3.0

func Duration(s string) (time.Duration, error)

func Env added in v0.8.9

func Env[T any](prefix string) (T, []validate.FieldError)

func Form added in v0.8.9

func Form[T any](values url.Values) (T, []validate.FieldError)

func JSON added in v0.3.0

func JSON[T any](data string) (T, []validate.FieldError)

func JSONLines added in v0.3.0

func JSONLines(data string) []string

func Lines added in v0.3.0

func Lines(data string) []string

func Query added in v0.3.0

func Query(s string) (url.Values, error)

func URL added in v0.3.0

func URL(s string) (*url.URL, error)

func WriteCSV added in v0.15.0

func WriteCSV(path string, rows [][]string) error

func WriteCSVRecords added in v0.15.0

func WriteCSVRecords(path string, records CSVRows) error

func YAML added in v0.3.0

func YAML[T any](data string) (T, []validate.FieldError)

Types

type CSVRows added in v0.17.2

type CSVRows = []map[string]string

func CSVRecords added in v0.3.0

func CSVRecords(data string) (CSVRows, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL