Registry / serialization / hashicorp-go-cty

hashicorp-go-cty

JSON →
library1.5.0gogounverified

A type system for dynamic values used in HashiCorp tools like Terraform.

go get github.com/hashicorp/go-cty
INSTALL
IMPORT
SIG · HASHICORP-GO-CTY
H
hashicorp-go-cty
serializationgov1.5.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.

cty
github.com/hashicorp/go-cty/cty

Create a cty string value and print its representation.

package main import ( "fmt" "github.com/hashicorp/go-cty/cty" ) func main() { val := cty.StringVal("hello") fmt.Println(val.GoString()) }
Debug
Known issues
gotchaThe root package is not importable; use the cty subpackage.
fix
Import github.com/hashicorp/go-cty/cty instead of github.com/hashicorp/go-cty.
affects: all
Upgrade
Version history
1.5.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
hashicorp-go-cty — go get hashicorp-go-cty · libregistry