Skip to content

UltiRequiem/dadjokes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dadjokes

Go Report Card Go Reference

Get random dad jokes using the icanhazdadjoke API 👨

Install

go get github.com/UltiRequiem/dadjokes/pkg

Usage

import (
	"fmt"
	"github.com/UltiRequiem/dadjokes/pkg"
)

func main() {
	joke, errorGettingJoke := dadjokes.GetJoke()

	if errorGettingJoke != nil {
		panic(errorGettingJoke)
	}

	fmt.Println(joke.Joke)
}

Documentation

Is hosted on pkg.go.dev 📖

CLI

Installation

go install github.com/UltiRequiem/dadjokes@latest

Usage

dadjokes

Or 👇

dadjokes 15

Screenshot

Video Showcase 📹

Support

Open an Issue, I will check it a soon as possible 👀

If you want to hurry me up a bit send me a tweet 😆

Consider supporting me on Patreon if you like my work 🙏

Don't forget to start the repo ⭐

Versioning

We use Semantic Versioning. For the versions available, see the tags 🏷️

Authors

Eliaz Bobadilla - Creator and Maintainer 💪

See also the full list of contributors who participated in this project ✨

Licence

Licensed under the MIT License 📄