func GetAllResources() ([]Resource, error) {
	resources := []Resource{}
	err := db.View(func(tx *bolt.Tx) error {
		b := tx.Bucket([]byte("search"))
		return b.ForEach(func(key, value []byte) error {
			var storedResources []Resource
			err := json.Unmarshal([]byte(value), &storedResources)
			if err != nil {
				return err
			}

			resources = append(resources, storedResources...)
			return nil
		})
	})
	return resources, err
}
// GetAllResources returns all the resources seen in the last crawl
GetAllResources returns all the resources seen in the last crawl
// GetAllResources returns all the resources seen in the last crawl
func GetAllResources() ([]Resource, error) {
	resources := []Resource{}
	err := db.View(func(tx *bolt.Tx) error {
		b := tx.Bucket([]byte("search"))
		return b.ForEach(func(key, value []byte) error {
			var storedResources []Resource
			err := json.Unmarshal([]byte(value), &storedResources)
			if err != nil {
				return err
			}
			resources = append(resources, storedResources...)
			return nil
		})
	})
	return resources, err
}
func GetAllResources ( ) ( [ ] Resource , error ) { resources := [ ] Resource { } err := db . View ( func ( tx * bolt . Tx ) error { b := tx . Bucket ( [ ] byte ( " " ) ) return b . ForEach ( func ( key , value [ ] byte ) error { var storedResources [ ] Resource err := json . Unmarshal ( [ ] byte ( value ) , & storedResources ) if err != nil { return err } resources = append ( resources , storedResources ... ) return nil } ) } ) return resources , err }
GetAllResources returns all the resources seen in the last crawl
GetAllResources returns all the resources seen in the last crawl