4
0

category.go 491 B

123456789101112131415161718192021
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the Apache 2.0
  3. // license that can be found in the LICENSE file.
  4. package form // import "miniflux.app/ui/form"
  5. import (
  6. "net/http"
  7. )
  8. // CategoryForm represents a feed form in the UI
  9. type CategoryForm struct {
  10. Title string
  11. }
  12. // NewCategoryForm returns a new CategoryForm.
  13. func NewCategoryForm(r *http.Request) *CategoryForm {
  14. return &CategoryForm{
  15. Title: r.FormValue("title"),
  16. }
  17. }