Skip to content

Commit

Permalink
refactor: correct spelling mistakes and clean up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tauraamui committed Jul 8, 2023
1 parent ba8f157 commit 23546bd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 1 addition & 3 deletions example/hiarchy.go → example/hierarchy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ type Cake struct {
}

func (b Cake) TableName() string { return "cakes" }
func (b *Cake) SetID(id uint32) { b.ID = id }
func (b *Cake) Ref() any { return b }

func hiarchy() {
func hierarchy() {
db, err := kvs.NewMemKVDB()
if err != nil {
panic(err)
Expand Down
2 changes: 0 additions & 2 deletions example/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type Balloon struct {
}

func (b Balloon) TableName() string { return "balloons" }
func (b *Balloon) SetID(id uint32) { b.ID = id }
func (b *Balloon) Ref() any { return b }

func main() {
db, err := kvs.NewMemKVDB()
Expand Down
4 changes: 0 additions & 4 deletions storage/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ type Balloon struct {
}

func (b Balloon) TableName() string { return "balloons" }
func (b *Balloon) SetID(id uint32) { b.ID = id }
func (b *Balloon) Ref() any { return b }

type Cake struct {
ID uint32 `mdb:"ignore"`
Expand All @@ -25,8 +23,6 @@ type Cake struct {
}

func (b Cake) TableName() string { return "cakes" }
func (b *Cake) SetID(id uint32) { b.ID = id }
func (b *Cake) Ref() any { return b }

func TestStoreAndLoadMultipleBalloonsSuccess(t *testing.T) {
is := is.New(t)
Expand Down

0 comments on commit 23546bd

Please sign in to comment.