cat-facts

module
v0.0.0-...-5e5dcbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2024 License: MIT

README

😽 Cat Fact API

Go Reference Official Documentation OpenAPI Go Report Card Code Coverage API Health

An API that shows different Cat Facts! (Source)

Installation

To install the library, use the following command:

go get github.com/go-api-libs/cat-facts/pkg/catfacts

Usage

Example:
package main

import (
	"context"

	"github.com/go-api-libs/cat-facts/pkg/catfacts"
)

func main() {
	c, err := catfacts.NewClient()
	if err != nil {
		panic(err)
	}

	ctx := context.Background()
	err := c.GetRandom(ctx, &catfacts.GetRandomParams{Amount: 1})
	if err != nil {
		panic(err)
	}
}

Additional Information

Contributing

If you have any contributions to make, please submit a pull request or open an issue on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL