Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalWithSettings ¶
func MarshalWithSettings(value any, writer *multipart.Writer, arrayFormat FormFormat) error
MarshalWithSettings encodes a value with custom array format
Types ¶
type FormFormat ¶
type FormFormat int
const ( // FormatRepeat represents arrays as repeated keys with the same value FormatRepeat FormFormat = iota // Comma-separated values 1,2,3 FormatComma // FormatBrackets uses the key[] notation for arrays FormatBrackets // FormatIndicesDots uses key.0, key.1, etc. notation FormatIndicesDots // FormatIndicesBrackets uses key[0], key[1], etc. notation FormatIndicesBrackets )
Click to show internal directories.
Click to hide internal directories.