reviews

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParseID     = errors.New("failed to parse id")
	ErrParseDate   = errors.New("failed to parse date")
	ErrParseRating = errors.New("failed to parse rating")
	ErrParseTitle  = errors.New("failed to parse title")
	ErrParsePros   = errors.New("failed to parse pros")
	ErrParseCons   = errors.New("failed to parse cons")
	ErrParseAdvice = errors.New("failed to parse advice")
)

Functions

This section is empty.

Types

type Review

type Review struct {
	ID     string    `json:"id,omitempty"`
	Date   time.Time `json:"date,omitempty"`
	Title  string    `json:"title,omitempty"`
	Rating float64   `json:"rating,omitempty"`
	Pros   []string  `json:"pros,omitempty"`
	Cons   []string  `json:"cons,omitempty"`
	Advice []string  `json:"advice,omitempty"`
}

func Parse

func Parse(r io.Reader) ([]Review, error)

Jump to

Keyboard shortcuts

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