File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,7 @@ func (s String) Ptr() *string {
9595 return & s .String
9696}
9797
98- // IsZero returns true for null or empty strings, for future omitempty support. (Go 1.4?)
99- // Will return false s if blank but non-null.
98+ // IsZero returns true for null strings, for potential future omitempty support.
10099func (s String ) IsZero () bool {
101100 return ! s .Valid
102101}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ func (s String) Ptr() *string {
9797 return & s .String
9898}
9999
100- // IsZero returns true for null or empty strings, for future omitempty support. (Go 1.4?)
100+ // IsZero returns true for null or empty strings, for potential future omitempty support.
101101func (s String ) IsZero () bool {
102102 return ! s .Valid || s .String == ""
103103}
You can’t perform that action at this time.
0 commit comments