func AllBooks() ([]Book, error) {
	bks := []Book{}
	err := config.Books.Find(bson.M{}).All(&bks)
	if err != nil {
		return nil, err
	}
	return bks, nil
}
AllBooks finds all records
package records
import (
	"../config"
	"errors"
	"gopkg.in/mgo.v2/bson"
	"net/http"
	"strconv"
)
type Book struct {
	Isbn   string   
	Title  string   
	Author string   
	Price  float32  
}