File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ import (
27
27
28
28
func main () {
29
29
// Authentication with username/password:
30
- client := miniflux.New (" https://api.example.org" , " admin" , " secret" )
30
+ client := miniflux.NewClient (" https://api.example.org" , " admin" , " secret" )
31
31
32
32
// Authentication with an API Key:
33
- client := miniflux.New (" https://api.example.org" , " my-secret-token" )
33
+ client := miniflux.NewClient (" https://api.example.org" , " my-secret-token" )
34
34
35
35
// Fetch all feeds.
36
36
feeds , err := client.Feeds ()
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ type Client struct {
18
18
}
19
19
20
20
// New returns a new Miniflux client.
21
+ //
21
22
// Deprecated: use NewClient instead.
22
23
func New (endpoint string , credentials ... string ) * Client {
23
24
return NewClient (endpoint , credentials ... )
You can’t perform that action at this time.
0 commit comments