subscription.go 554 B

123456789101112131415161718
  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 opml
  5. type Subcription struct {
  6. Title string
  7. SiteURL string
  8. FeedURL string
  9. CategoryName string
  10. }
  11. func (s Subcription) Equals(subscription *Subcription) bool {
  12. return s.Title == subscription.Title && s.SiteURL == subscription.SiteURL && s.FeedURL == subscription.FeedURL && s.CategoryName == subscription.CategoryName
  13. }
  14. type SubcriptionList []*Subcription