terraform/vendor/github.com
Martin Atkins 02576988c1 lang: "try" and "can" functions
These are intended to make it easier to work with arbitrary data
structures whose shape might not be known statically, such as the result
of jsondecode(...) or yamldecode(...) of data from a separate system.

For example, in an object value which has attributes that may or may not
be set we can concisely provide a fallback value to use when the attribute
isn't set:

    try(local.example.foo, "fallback-foo")

Using a "try to evaluate" model rather than explicit testing fits better
with the usual programming model of the Terraform language where values
are normally automatically converted to the necessary type where possible:
the given expression is subject to all of the same normal type conversions,
which avoids inadvertently creating a more restrictive evaluation model
as might happen if this were handled using checks like a hypothetical
isobject(...) function, etc.
2020-01-10 15:23:25 -08:00
..
Azure
ChrisTrenkamp/goxpath
Unknwon/com
agext/levenshtein
agl/ed25519
aliyun
antchfx
apparentlymart
armon
aws/aws-sdk-go
bgentry
blang/semver
bmatcuk/doublestar
chzyer/readline
coreos
davecgh/go-spew
dgrijalva/jwt-go
dimchansky/utfbom
dylanmei
fatih/color
go-test/deep
gogo/protobuf
golang
google
googleapis/gax-go/v2
gophercloud
hashicorp lang: "try" and "can" functions 2020-01-10 15:23:25 -08:00
jmespath/go-jmespath
joyent/triton-go
json-iterator/go
kardianos/osext
keybase/go-crypto
lib/pq
lusis/go-artifactory
masterzen
mattn
mitchellh
modern-go
nu7hatch/gouuid
oklog/run
packer-community/winrmcp
pkg
posener/complete
satori/go.uuid
spf13/afero
svanharmelen/jsonapi
terraform-providers/terraform-provider-openstack
ugorji/go
ulikunitz/xz
vmihailenco/msgpack
xanzy/ssh-agent
xlab/treeprint
zclconf