kitech/php-go

How would I return a string from Go to PHP?

Closed this issue · 1 comments

Your example shows how to return an int.
How would I return a string?

it support all go's primity type, so you can return a go's string directly:

`var s string = "a golang string"

return s`