github.com/hashicorp/hcl/v2@v2.20.0/hcldec/doc.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  // Package hcldec provides a higher-level API for unpacking the content of
     5  // HCL bodies, implemented in terms of the low-level "Content" API exposed
     6  // by the bodies themselves.
     7  //
     8  // It allows decoding an entire nested configuration in a single operation
     9  // by providing a description of the intended structure.
    10  //
    11  // For some applications it may be more convenient to use the "gohcl"
    12  // package, which has a similar purpose but decodes directly into native
    13  // Go data types. hcldec instead targets the cty type system, and thus allows
    14  // a cty-driven application to remain within that type system.
    15  package hcldec