// GetPrevious lets you go to the previous page if it exists, returns (*Book, nil) if
// it is successfull and (nil, error) otherwise
GetPrevious lets you go to the previous page if it exists, returns (*Book, nil) if
it is successfull and (nil, error) otherwise
// GetPrevious lets you go to the previous page if it exists returns ( * Book nil ) if // it is successfull and ( nil error ) otherwise
func (b *Book) GetPrevious() (*Book, error) {
	if b.pagination.Previous == nil {
		return nil, fmt.Errorf("Previous page does not exist")
	}
	return b.client.GetBook(
		args.Market(b.args["market"]),
		args.Type(b.args["type"]),
		args.Page(int(b.pagination.Previous.(float64))),
		args.Limit(b.pagination.Limit))
}
func ( b * Book ) GetPrevious ( ) ( * Book , error ) { if b . pagination . Previous == nil { return nil , fmt . Errorf ( " " ) } return b . client . GetBook ( args . Market ( b . args [ " " ] ) , args . Type ( b . args [ " " ] ) , args . Page ( int ( b . pagination . Previous . ( float64 ) ) ) , args . Limit ( b . pagination . Limit ) ) }
GetPrevious lets you go to the previous page if it exists, returns (*Book, nil) if
it is successfull and (nil, error) otherwise
GetPrevious lets you go to the previous page if it exists returns ( * Book nil ) if it is successfull and ( nil error ) otherwise