fun

package
v0.0.0-...-e7fbf99 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetImage

func GetImage(category string) (*bytes.Buffer, error)

GetImage return image bytes buffer

func GetImageURL

func GetImageURL(category string) (string, error)

GetImageURL returns image url

Types

type ImageResponse

type ImageResponse struct {
	Error    string `json:"error"`
	Success  bool   `json:"success"`
	ImageURL string `json:"image"`
}

ImageResponse contains image API response data

Jump to

Keyboard shortcuts

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