Dose someone know why storm ( toolkit for BoltDB) returns UNKNOWN TAG

type Task struct {
  ID int `storm:"id, increment"`
  Action string `storm:"unique"`

func (cli CLI) Add(task string) error {
newTask := Task{Action: task}
err = DataBase.Save(&newTask)
     fmt.Printf("TYPE %T\n", DataBase) // TYPE *storm.DB
if err != nil {
	fmt.Println(err)// UNKNOWN TAG
	return err

why it return UNKOWN TAG i guess i did everything correct

SOLVED! It is because of a whitespace in tag

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.