Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
sonh committed Mar 1, 2022
1 parent 1974fb5 commit 17e6e6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion encode_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (cacheStore *cacheStore) Retrieve(typ reflect.Type) cachedFields {
return cacheStore.m[typ]
}

// cacheStore stores cachedFields that corresponds to reflect.Type
// Store func stores cachedFields that corresponds to reflect.Type
func (cacheStore *cacheStore) Store(typ reflect.Type, cachedFields cachedFields) {
cacheStore.mutex.Lock()
defer cacheStore.mutex.Unlock()
Expand Down
1 change: 1 addition & 0 deletions encode_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ func newTimeField(tagName []byte, tagOptions [][]byte) *timeField {
return field
}

// Zeroer represents an object has zero value
// IsZeroer is used to check whether an object is zero to
// determine whether it should be omitted when encoding
type Zeroer interface {
Expand Down

0 comments on commit 17e6e6c

Please sign in to comment.