Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Get Use HTTP GET method for form submission. Data appears in URL parameters and is // visible in browser history. Suitable for search forms and non-sensitive data. Get = FormMethod("get") // Post Use HTTP POST method for form submission. Data is sent in request body and not // visible in URL. Required for sensitive data, file uploads, and data modification. Post = FormMethod("post") )
Variables for FormMethod values
Functions ¶
This section is empty.
Types ¶
type FormMethod ¶
type FormMethod []byte
FormMethod HTTP method override for individual submit inputs. Allows different submit buttons to use different HTTP methods, overriding the form's default method attribute.
func Custom ¶
func Custom(value string) FormMethod
Custom allows setting a custom FormMethod value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.
Click to show internal directories.
Click to hide internal directories.