package
0.0.0-20240305182714-52ea55a1a42d
Repository: https://github.com/canopyclimate/golive.git
Documentation: pkg.go.dev

# Functions

ErrorTag renders an error tag if there is an error for the given key in the provided changeset.
Funcs returns a map of functions that can be used in templates: - inputTag: renders an input tag with the given key and value for the provided changeset - errorTag: renders an error tag if there is an error for the given key in the provided changeset.
InputTag renders an input tag with the given key and value for the provided changeset.
New returns a new Changeset of type T using the Config and initilizes the Changeset with the given initial values.
NewGoPlaygroundChangesetConfig initializes the decoder and configures the validator with translations for the len, lte, and min tags.

# Structs

Changeset provides a powerful API for decoding URL values into a struct and validating the struct.
Config is a configuration for a Changeset providing implementations of Validator and Decoder.
GoPlaygroundChangesetConfig provides a GoPlayground Validate and Decoder based implementation of the Validator and Decoder interfaces.

# Interfaces

Any represents any Changeset.
Decoder decodes a url.Values into a struct.
Validator validates url.Values for a give struct and returns a map of field name to error message.