https://pulumi.com logo
#golang
Title
# golang
g

gifted-city-99717

06/12/2020, 2:28 AM
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

lemon-agent-27707

06/12/2020, 10:31 PM
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.
3 Views