opentofu/vendor
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
..
cloud.google.com/go vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
github.com lang: "try" and "can" functions 2020-01-10 15:23:25 -08:00
go.opencensus.io vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
golang.org/x Version tools per Go convention under tools.go 2019-10-17 22:23:39 +02:00
google.golang.org vendor: Bump go-getter to 1.4.0 2019-09-09 14:04:58 +02:00
gopkg.in Add tablestore config to store state lock 2019-04-11 07:11:10 +08:00
modules.txt lang: "try" and "can" functions 2020-01-10 15:23:25 -08:00