Is it possible to check if a resource exists? I’m ...
# golang
h
Is it possible to check if a resource exists? I’m attempting to default a field to its current value if not explicitly provided.
I tried doing a
GetResource
and then pulling out that field before passing it through to the corresponding
RegisterResource
. That works fine. But if the resource doesn’t exist yet, a
resource X does not exist
error is thrown and I can’t seem to catch it.