goismatic

package module
v0.0.0-...-da48714 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 4 Imported by: 1

README

goismatic

Go API for Forismatic

Documentation

Index

Constants

View Source
const (
	English lang = iota
	Russian
)

The list of supported languages

Variables

This section is empty.

Functions

This section is empty.

Types

type Quote

type Quote struct {
	QuoteText   string
	QuoteAuthor string
}

The Quote struct represents the details of a quote from forismatic.com

func Get

func Get(l lang) (*Quote, error)

Get returns a random quote in either English or Russian from forismatic.com

func (*Quote) String

func (q *Quote) String() string

Jump to

Keyboard shortcuts

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