4 examples of 'go strings' in Go

Every line of 'go strings' 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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
345func (c *Context) GoStr(cstr *uint8) string {
346 return ""
347}
58func GoStr(cstr *uint8) string {
59 str := ""
60 for {
61 if *cstr == 0 {
62 break
63 }
64 str += string(*cstr)
65 cstr = (*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(cstr)) + 1))
66 }
67 return str
68}
1288func (v *ASTBuilder) VisitUnicodeStringLiteral(ctx *antlrgen.UnicodeStringLiteralContext) interface{} {
1289 return v.VisitChildren(ctx)
1290}
343func (v *BaseSqlVisitor) VisitUnicodeStringLiteral(ctx *UnicodeStringLiteralContext) interface{} {
344 return v.VisitChildren(ctx)
345}

Related snippets