You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
476 B
Go
14 lines
476 B
Go
package server
|
|
|
|
// Define a snippetCreateForm struct to represent the form data and validation
|
|
// errors for the form fields. Note that all the struct fields are deliberately
|
|
// exported (i.e. start with a capital letter). This is because struct fields
|
|
// must be exported in order to be read by the html/template package when
|
|
// rendering the template.
|
|
type snippetCreateForm struct {
|
|
Title string
|
|
Content string
|
|
Expires int
|
|
FieldErrors map[string]string
|
|
}
|