Registry / config / hashicorp-hcl

hashicorp-hcl

JSON →
library1.0.0gogounverified

Package hcl decodes HCL into usable Go structures.

go get github.com/hashicorp/hcl
INSTALL
IMPORT
SIG · HASHICORP-HCL
H
hashicorp-hcl
configgov1.0.0
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.

hcl
github.com/hashicorp/hcl

Decode a simple HCL string into a struct

package main import ( "fmt" "github.com/hashicorp/hcl" ) func main() { type Config struct { Name string `hcl:"name"` } var c Config hcl.Decode(&c, "name = \"hello\"") fmt.Println(c.Name) }
Debug
Known issues
breakingHCL v1 is legacy; v2 is recommended for new projects
fix
Use github.com/hashicorp/hcl/v2 instead
affects: >=1.0.0
Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
34
Bingbot
1
Resources
hashicorp-hcl — go get hashicorp-hcl · libregistry