//Get tags from the disk and returns Slice. func Get() tag.Slice { var r []string err := db.DB.View(func(tx *bolt.Tx) error { var err error r, err = db.KeyStrings(tx, "usertagTag") return err }) if err != nil { log.Print(err) return nil } return tag.NewSlice(r) }
//GetByThread gets thread tags from the disk func GetByThread(thread string) tag.Slice { r := GetStrings(thread) return tag.NewSlice(r) }