Every line of 'golang len' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
50 func (t T) Len() N { 51 return N(utf8.RuneCountInString(string(t))) 52 }
370 func (p *PCOPayload) Len() int { 371 l := 1 372 for _, opt := range p.ConfigurationProtocolOptions { 373 l += opt.Len() 374 } 375 376 return l 377 }
97 func (r *Ref) Len() int { 98 if r.Void { 99 return 0 100 } 101 if r.List != nil { 102 return len(r.List) 103 } 104 return 1 105 }
10 func getlen(str *string) string { 11 length := len(*str) 12 if length < 10 { 13 return "0" + strconv.Itoa(length) 14 } else { 15 return strconv.Itoa(length) 16 } 17 }
204 func (z *Scalar) Len() int { 205 return len(z.String()) 206 }
203 func (cr *ColReader) Len() int { 204 if len(cr.cols) == 0 { 205 return 0 206 } 207 return cr.cols[0].Len() 208 }
39 func (v V) Len() N { 40 return N(len(v)) 41 }
274 func (rr *MB) len() int { return rr.Hdr.len() + len(rr.Mb) + 1 }
249 func (h TSMPPongReply) Len() int { 250 return h.IPHeader.Len() + 11 251 }
829 func (rr *DLV) len() int { return rr.Hdr.len() + 4 + len(rr.Digest)/2 }