1
0
Fork 0
miniflux/ui/form/category.go

24 lines
572 B
Go
Raw Normal View History

2017-11-19 21:10:04 -08:00
// Copyright 2017 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
2018-08-24 21:51:50 -07:00
package form // import "miniflux.app/ui/form"
2017-11-19 21:10:04 -08:00
import (
"net/http"
)
// CategoryForm represents a feed form in the UI
type CategoryForm struct {
Title string
HideGlobally string
2017-11-19 21:10:04 -08:00
}
2017-11-27 21:30:04 -08:00
// NewCategoryForm returns a new CategoryForm.
2017-11-19 21:10:04 -08:00
func NewCategoryForm(r *http.Request) *CategoryForm {
return &CategoryForm{
Title: r.FormValue("title"),
HideGlobally: r.FormValue("hide_globally"),
2017-11-19 21:10:04 -08:00
}
}