1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

refactor: unexport symbols

This commit is contained in:
Julien Voisin 2025-08-08 02:27:04 +02:00 committed by GitHub
parent a4d51b5586
commit 566670cc06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 369 additions and 376 deletions

View file

@ -5,20 +5,20 @@ package subscription // import "miniflux.app/v2/internal/reader/subscription"
import "fmt"
// Subscription represents a feed subscription.
type Subscription struct {
// subscription represents a feed subscription.
type subscription struct {
Title string `json:"title"`
URL string `json:"url"`
Type string `json:"type"`
}
func NewSubscription(title, url, kind string) *Subscription {
return &Subscription{Title: title, URL: url, Type: kind}
func NewSubscription(title, url, kind string) *subscription {
return &subscription{Title: title, URL: url, Type: kind}
}
func (s Subscription) String() string {
func (s subscription) String() string {
return fmt.Sprintf(`Title=%q, URL=%q, Type=%q`, s.Title, s.URL, s.Type)
}
// Subscriptions represents a list of subscription.
type Subscriptions []*Subscription
type Subscriptions []*subscription