Registry / serialization / zclconf-go-cty-yaml

zclconf-go-cty-yaml

JSON →
library1.2.0gogounverified

Package yaml can marshal and unmarshal cty values in YAML format.

go get github.com/zclconf/go-cty-yaml
INSTALL
IMPORT
SIG · ZCLCONF-GO-CTY-YAM
Z
zclconf-go-cty-yaml
serializationgov1.2.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.

yaml
github.com/zclconf/go-cty-yaml

Marshals a cty value to YAML

package main import ( "fmt" "github.com/zclconf/go-cty/cty" "github.com/zclconf/go-cty/cty/function" "github.com/zclconf/go-cty-yaml" ) func main() { val := cty.StringVal("hello") out, err := yaml.Marshal(val, "test") if err != nil { panic(err) } fmt.Println(string(out)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
1
Resources
zclconf-go-cty-yaml — go get zclconf-go-cty-yaml · libregistry