How would I return a string from Go to PHP?
Closed this issue · 1 comments
drewlesueur commented
Your example shows how to return an int
.
How would I return a string
?
kitech commented
it support all go's primity type, so you can return a go's string directly:
`var s string = "a golang string"
return s`