Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CountryOptions = []string{
"Canada",
"Mexico",
"United States",
}
CountryOptions available for demo purposes
Functions ¶
Types ¶
type FormData ¶
type FormData struct { FirstName string LastName string Email string Country string Description string }
FormData is used to serialize the state of the inline demo form
func (*FormData) MarshalBase64 ¶
MarshalBase64 encodes struct value for use as cookie value with limited characterset and available space. The struct value is encoded to a JSON byte array, compress and return base 64 encoding.
func (*FormData) UnmarshalBase64 ¶
UnmarshalBase64 assigns fields from a base64 encoded and DEFLATE compressed JSON string
Click to show internal directories.
Click to hide internal directories.