diff --git a/client/README.md b/client/README.md index a10dbffd..342ad7ce 100644 --- a/client/README.md +++ b/client/README.md @@ -27,10 +27,10 @@ import ( func main() { // Authentication with username/password: - client := miniflux.New("https://api.example.org", "admin", "secret") + client := miniflux.NewClient("https://api.example.org", "admin", "secret") // Authentication with an API Key: - client := miniflux.New("https://api.example.org", "my-secret-token") + client := miniflux.NewClient("https://api.example.org", "my-secret-token") // Fetch all feeds. feeds, err := client.Feeds() diff --git a/client/client.go b/client/client.go index a07c0552..838af02e 100644 --- a/client/client.go +++ b/client/client.go @@ -18,6 +18,7 @@ type Client struct { } // New returns a new Miniflux client. +// // Deprecated: use NewClient instead. func New(endpoint string, credentials ...string) *Client { return NewClient(endpoint, credentials...)