hcl/hcldec
Chris Marchesi 9c4784b144
hcldec: add ValidateSpec
This adds ValidateSpec, a new decoder Spec that allows one to add
custom validations to work with values at decode-time.

The validation is run on the value after the wrapped spec is applied to
the expression in question. Diagnostics are expected to be returned,
with the author having flexibility over whether or not they want to
specify a range; if one is not supplied, the range of the wrapped
expression is used.
2020-06-04 14:25:45 -07:00
..
block_labels.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
decode.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
doc.go Update doc comments and readmes for zcl -> HCL. 2017-09-11 16:56:31 -07:00
gob.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
public_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
public.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
schema.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
spec_test.go hcldec: add ValidateSpec 2020-06-04 14:25:45 -07:00
spec.go hcldec: add ValidateSpec 2020-06-04 14:25:45 -07:00
variables_test.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00
variables.go Unfold the "hcl" directory up into the root 2019-09-09 16:08:19 -07:00