File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ type Gostr struct {
8585 S string
8686}
8787
88- // Do not use from Java/Kotlin.
88+ var emptyGostr = & Gostr {S : "" }
89+
8990func (s * Gostr ) String () string {
9091 if s == nil {
9192 return ""
9293 }
9394 return s .S
9495}
9596
96- // Do not use from Java/Kotlin; instead use Gostr.S.
9797func (s * Gostr ) V () string {
9898 if s == nil {
9999 return ""
@@ -151,8 +151,6 @@ func strof2(v string) (r *Gostr2) {
151151 return & Gostr2 {v : hdl , H : hashstr (v ), L : len (v )}
152152}
153153
154- var emptyGostr = & Gostr {S : "" }
155-
156154func (s * Gostr2 ) S () * Gostr {
157155 if s != nil && s .v .Value () != "" {
158156 return & Gostr {S : s .v .Value ()}
@@ -216,7 +214,6 @@ func BytesOf(v []byte) *Gobyte {
216214 return & Gobyte {B : v }
217215}
218216
219- // Do not use from Java/Kotlin; instead use Gobyte.B.
220217func (b * Gobyte ) V () []byte {
221218 if b == nil {
222219 return nil
You can’t perform that action at this time.
0 commit comments