Skip to content

Commit 0628db2

Browse files
committed
core/box: godoc
1 parent e523e57 commit 0628db2

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

intra/backend/core_boxes.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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+
8990
func (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.
9797
func (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-
156154
func (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.
220217
func (b *Gobyte) V() []byte {
221218
if b == nil {
222219
return nil

0 commit comments

Comments
 (0)