what’s the best way to get a string from an string...
# golang
g
what’s the best way to get a string from an stringOutput? I only see
Copy code
// Helpers for accessing properties are not yet available in Go.
in the docs
l
That doc message is for lifted property access which wouldn't help get the raw string value. Typically you never access the raw value inside of an output unless from within an Apply call. Apply is almost always the answer in these scenarios: https://www.pulumi.com/docs/intro/concepts/programming-model/#apply There is an exception for testing where you can use channels to get the outputs, but can cause big problems if you try to do it in a production app. If you give more details on what you're trying to accomplish I can try to point you in the right direction.