update docs
This commit is contained in:
parent
8ba2f90d14
commit
064b38ec63
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func (s String) Pointer() *string {
|
|||
return &s.String
|
||||
}
|
||||
|
||||
// IsZero returns true for null strings, for future omitempty support. (Go 1.4?)
|
||||
// IsZero returns true for null or empty strings, for future omitempty support. (Go 1.4?)
|
||||
func (s String) IsZero() bool {
|
||||
return !s.Valid || s.String == ""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue