Refactor Type to be an int
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
type HashKey struct {
|
||||
Type ObjectType
|
||||
Type Type
|
||||
Value uint64
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ func (h *Hash) Bool() bool {
|
||||
return len(h.Pairs) > 0
|
||||
}
|
||||
|
||||
func (h *Hash) Type() ObjectType {
|
||||
return HASH_OBJ
|
||||
func (h *Hash) Type() Type {
|
||||
return HashType
|
||||
}
|
||||
|
||||
func (h *Hash) Inspect() string {
|
||||
|
||||
Reference in New Issue
Block a user