added GetTrait() and SetTrait() to go code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-22 01:38:13 +09:00
parent a02c323393
commit 676ba7d746
2 changed files with 29 additions and 1 deletions

View File

@ -81,6 +81,8 @@ func main() {
x.SetLogTarget("/dev/stderr")
}
x.SetTrait (x.GetTrait() | hcl.TRAIT_LANG_ENABLE_EOL | hcl.TRAIT_LANG_ENABLE_BLOCK)
err = x.Ignite(1000000)
if err != nil {
fmt.Printf("Error: failed to ignite - %s\n", err.Error())