15 lines
184 B
Go
15 lines
184 B
Go
package form
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type FolderForm struct {
|
|
Name string
|
|
}
|
|
|
|
func NewFolderForm(r *http.Request) *FolderForm {
|
|
return &FolderForm{
|
|
Name: r.FormValue("name"),
|
|
}
|
|
}
|