qod

package
v0.0.0-...-e30276e Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contents

type Contents struct {
	Quotes []Quote `json:"quotes"`
}

Contents represents the list of quotes

func (Contents) String

func (c Contents) String() string

type JSON

type JSON struct {
	Contents Contents `json:"contents"`
}

JSON represents the return from quotes.rest

func (JSON) String

func (j JSON) String() string

type Quote

type Quote struct {
	Quote  string `json:"quote"`
	Author string `json:"author"`
}

Quote represents a single quote

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