Last active
April 17, 2018 22:05
-
-
Save aaronhurt/a2014233e683538e1165a0e6d8578734 to your computer and use it in GitHub Desktop.
Revisions
-
aaronhurt revised this gist
Apr 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,5 +24,5 @@ type fooBar struct { func main() { fb := &fooBar{} err := hcl.Decode(fb, myHCL) fmt.Printf("out: %+v\nlen: %d\nerr: %s", fb, len(fb.Foo.Bar), err) } -
aaronhurt revised this gist
Apr 17, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,5 +24,5 @@ type fooBar struct { func main() { fb := &fooBar{} err := hcl.Decode(fb, myHCL) fmt.Printf("out: %+v\nlen: %d\nerr: %s,", fb, len(fb.Foo.Bar), err) } -
aaronhurt created this gist
Apr 17, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ package main import ( "fmt" "github.com/hashicorp/hcl" ) const myHCL = `foo { bar = [<<EOF "adsf asdf" EOF , <<EOF asdf asdf, EOF ] }` type fooBar struct { Foo struct { Bar []string } } func main() { fb := &fooBar{} err := hcl.Decode(fb, myHCL) fmt.Printf("out: %+v\nerr: %s", fb, err) }