doc.go 678 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2017 Frédéric Guillot. All rights reserved.
  2. // Use of this source code is governed by the MIT license
  3. // that can be found in the LICENSE file.
  4. /*
  5. Package miniflux implements a client library for the Miniflux REST API.
  6. Examples
  7. This code snippet fetch the list of users.
  8. client := miniflux.NewClient("https://api.example.org", "admin", "secret")
  9. users, err := client.Users()
  10. if err != nil {
  11. fmt.Println(err)
  12. return
  13. }
  14. fmt.Println(users, err)
  15. This one discover subscriptions on a website.
  16. subscriptions, err := client.Discover("https://example.org/")
  17. if err != nil {
  18. fmt.Println(err)
  19. return
  20. }
  21. fmt.Println(subscriptions)
  22. */
  23. package miniflux