21 lines
359 B
Go
21 lines
359 B
Go
package form
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type SettingsForm struct {
|
|
Homepage string
|
|
About string
|
|
Style string
|
|
Picture string
|
|
}
|
|
|
|
func NewSettingsForm(r *http.Request) *SettingsForm {
|
|
return &SettingsForm{
|
|
Homepage: r.FormValue("homepage"),
|
|
About: r.FormValue("about"),
|
|
Style: r.FormValue("style"),
|
|
Picture: r.FormValue("picture"),
|
|
}
|
|
}
|