a4ee7188ad
This is a wrapper that allows a default value to be applied if a primary spec results in a null value.
15 lines
613 B
Go
15 lines
613 B
Go
package hcldec
|
|
|
|
// Verify that all of our spec types implement the necessary interfaces
|
|
var objectSpecAsSpec Spec = ObjectSpec(nil)
|
|
var tupleSpecAsSpec Spec = TupleSpec(nil)
|
|
var attrSpecAsSpec Spec = (*AttrSpec)(nil)
|
|
var literalSpecAsSpec Spec = (*LiteralSpec)(nil)
|
|
var exprSpecAsSpec Spec = (*ExprSpec)(nil)
|
|
var blockSpecAsSpec Spec = (*BlockSpec)(nil)
|
|
var blockListSpecAsSpec Spec = (*BlockListSpec)(nil)
|
|
var blockSetSpecAsSpec Spec = (*BlockSetSpec)(nil)
|
|
var blockMapSpecAsSpec Spec = (*BlockMapSpec)(nil)
|
|
var blockLabelSpecAsSpec Spec = (*BlockLabelSpec)(nil)
|
|
var defaultSepcAsSpec Spec = (*DefaultSpec)(nil)
|