urlencoding

package
v0.0.0-...-248d258 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(m interface{}) ([]byte, error)

Marshal takes an anonymous struct and returns a URL encoded key/value mapping. Much like json encoding the struct is tagged to indicate that the field should be marshaled into a mapping.

The tag used by this module is 'url'. The first tag value is the encoded key name.

The 'omitempty' option causes the encoder to ignore type specific zero values e.g. empty strings or integers set to zero

Fields if anonymously tagged (typically structs) are recursively marshalled in depth first order, with key-value pairs flattened.

Types

This section is empty.

Jump to

Keyboard shortcuts

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