(out *bytes.Buffer)
| 906 | } |
| 907 | |
| 908 | func (p *PackerParser) Write(out *bytes.Buffer) { |
| 909 | if len(p.out) > 0 { |
| 910 | if p.WithAnnotations { |
| 911 | out.Write([]byte(packerBlockHeader)) |
| 912 | } |
| 913 | out.Write(p.out) |
| 914 | } |
| 915 | } |
| 916 | |
| 917 | type VariableParser struct { |
| 918 | WithAnnotations bool |