craiyon

package
v0.0.0-...-a7cc116 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const API_URL = "https://backend.craiyon.com/generate"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) GetImage

func (c *Client) GetImage(text string) (string, error)

type Request

type Request struct {
	Prompt string `json:"prompt"`
}

type Response

type Response struct {
	Images []string `json:"images,omitempty"`
}

Jump to

Keyboard shortcuts

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