joke

package
v0.0.0-...-804052e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitHandler

func InitHandler() http.HandlerFunc

InitHandler returns the joke handler

func InitRandomHandler

func InitRandomHandler() http.HandlerFunc

func Load

func Load(path string)

Load is a function helper that loads the joke file to the repo

Types

type Joke

type Joke struct {
	ID        int64  `json:"id"`
	Category  string `json:"category"`
	Setup     string `json:"setup"`
	Punchline string `json:"punchline"`
	Language  string `json:"lang"`
}

Jump to

Keyboard shortcuts

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