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.