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

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  // Package hclwrite deals with the problem of generating HCL configuration
     5  // and of making specific surgical changes to existing HCL configurations.
     6  //
     7  // It operates at a different level of abstraction than the main HCL parser
     8  // and AST, since details such as the placement of comments and newlines
     9  // are preserved when unchanged.
    10  //
    11  // The hclwrite API follows a similar principle to XML/HTML DOM, allowing nodes
    12  // to be read out, created and inserted, etc. Nodes represent syntax constructs
    13  // rather than semantic concepts.
    14  package hclwrite