Registry / config / hashicorp-hcl2

hashicorp-hcl2

JSON →
library0.0.0-20191002203319-fb75b3253c80gogounverified

Package hcl2 provides a parser and API for the HashiCorp Configuration Language (HCL) version 2.

go get github.com/hashicorp/hcl2
INSTALL
IMPORT
SIG · HASHICORP-HCL2
H
hashicorp-hcl2
configgov0.0.0-20191002203319-fb75b3253c80
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

hcl2
github.com/hashicorp/hcl2

Generate HCL2 configuration using hclwrite

package main import ( "fmt" "github.com/hashicorp/hcl2/hclwrite" ) func main() { f := hclwrite.NewFile() f.Body().SetAttributeValue("name", hclwrite.TokensForValue("example")) fmt.Printf("%s", f.Bytes()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20191002203319-fb75b3253c80latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
hashicorp-hcl2 — go get hashicorp-hcl2 · libregistry