binding

package module
v0.0.0-...-97c5eb2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 10 Imported by: 0

README

binding

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrConvertMapStringSlice can not convert to map[string][]string
	ErrConvertMapStringSlice = errors.New("can not convert to map slices of strings")

	// ErrConvertToMapString can not convert to map[string]string
	ErrConvertToMapString = errors.New("can not convert to map of strings")
)

Functions

func MapFormWithTag

func MapFormWithTag(ptr any, form map[string][]string, tag string) error

MapFormWithTag maps the form on any struct

Types

type BindUnmarshaler

type BindUnmarshaler interface {
	UnmarshalParam(param string) error
}

BindUnmarshaler is a type that can unmarshal a parameter into a value.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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