options

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateStructFromMap

func PopulateStructFromMap(ptr interface{}, m map[string][]string, strict bool) error

PopulateStructFromMap fills in a struct pointed to by ptr using values from m. It uses the "url" tag to map keys from m to struct fields. The tag can include an option "base64" (e.g. `url:"name,base64"`) to indicate that the passed data is base64 encoded and should be decoded. When strict is true, an error is returned if m holds a key that is not part of the struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳