File tree Expand file tree Collapse file tree 3 files changed +1
-9
lines changed
Expand file tree Collapse file tree 3 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,8 @@ type Cake struct {
2121}
2222
2323func (b Cake ) TableName () string { return "cakes" }
24- func (b * Cake ) SetID (id uint32 ) { b .ID = id }
25- func (b * Cake ) Ref () any { return b }
2624
27- func hiarchy () {
25+ func hierarchy () {
2826 db , err := kvs .NewMemKVDB ()
2927 if err != nil {
3028 panic (err )
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ type Balloon struct {
1414}
1515
1616func (b Balloon ) TableName () string { return "balloons" }
17- func (b * Balloon ) SetID (id uint32 ) { b .ID = id }
18- func (b * Balloon ) Ref () any { return b }
1917
2018func main () {
2119 db , err := kvs .NewMemKVDB ()
Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ type Balloon struct {
1515}
1616
1717func (b Balloon ) TableName () string { return "balloons" }
18- func (b * Balloon ) SetID (id uint32 ) { b .ID = id }
19- func (b * Balloon ) Ref () any { return b }
2018
2119type Cake struct {
2220 ID uint32 `mdb:"ignore"`
@@ -25,8 +23,6 @@ type Cake struct {
2523}
2624
2725func (b Cake ) TableName () string { return "cakes" }
28- func (b * Cake ) SetID (id uint32 ) { b .ID = id }
29- func (b * Cake ) Ref () any { return b }
3026
3127func TestStoreAndLoadMultipleBalloonsSuccess (t * testing.T ) {
3228 is := is .New (t )
You can’t perform that action at this time.
0 commit comments