Skip to content

Commit

Permalink
#65 format code and add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SwanSpouse committed Dec 14, 2018
1 parent 917adae commit 3a0f444
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/t_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ var (
_ TBase = (*encodings.StringInt)(nil)
_ TBase = (*encodings.StringEmb)(nil)

_ TList = (*encodings.ListLinkedList)(nil)
_ TBase = (*encodings.ListLinkedList)(nil)

_ THash = (*encodings.HashDict)(nil)
_ TBase = (*encodings.HashDict)(nil)

_ TSet = (*encodings.HashSet)(nil)
_ TBase = (*encodings.HashSet)(nil)

_ TZSet = (*encodings.SortedSet)(nil)
_ TBase = (*encodings.SortedSet)(nil)
)

type TBase interface {
Expand Down
1 change: 1 addition & 0 deletions database/t_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
)

var (
// hash对象的实现方式
_ THash = (*encodings.HashDict)(nil)
)

Expand Down
1 change: 1 addition & 0 deletions database/t_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package database
import "redis_go/encodings"

var (
// list对象的实现方式
_ TList = (*encodings.ListLinkedList)(nil)
)

Expand Down
1 change: 1 addition & 0 deletions database/t_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package database
import "redis_go/encodings"

var (
// set对象的实现方式
_ TSet = (*encodings.HashSet)(nil)
)

Expand Down
1 change: 1 addition & 0 deletions database/t_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
)

var (
// string对象的三种实现方式
_ TString = (*encodings.StringRaw)(nil)
_ TString = (*encodings.StringInt)(nil)
_ TString = (*encodings.StringEmb)(nil)
Expand Down
1 change: 1 addition & 0 deletions database/t_zset.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package database
import "redis_go/encodings"

var (
// zset对象的实现方式
_ TZSet = (*encodings.SortedSet)(nil)
)

Expand Down

0 comments on commit 3a0f444

Please sign in to comment.