func insert(target *btree.BTree, item btree.Item) { if target.ReplaceOrInsert(item) != nil { panic("Insert failed. item already exists") } }