package
0.0.0-20241111182353-c1fbc2c9b65f
Repository: https://github.com/triangleside/gotools.git
Documentation: pkg.go.dev

# Functions

Decode populates a parameter struct with values from an HTTP request and performs validation on the struct.
ExtractAndValidateFieldTagLookupKeys validates the struct tags and returns a map of unique tag lookup keys for each field in the struct.
TagLookupKeyFollowsNamingConvention verifies if the tag value (the lookup key) follows the naming convention.

# Constants

HeaderTag is a struct field tag used to specify that the field's value should be sourced from the HTTP headers.
JSONTag is a struct field tag used to specify that the field's value should be sourced from the request JSON body.
PathTag is a struct field tag used to specify that the field's value should be sourced from the URL path parameters.
QueryTag is a struct field tag used to specify that the field's value should be sourced from URL query parameters.
TagLookupKeyNamingConvention is the naming convention a tags lookup key must adhere to.

# Type aliases

LookupKeyToFieldName is the tag's lookup key to the name of the field on the struct.
Tag is a string of metadata associated at compile time with a field of a struct.