Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
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.
Click to show internal directories.
Click to hide internal directories.