hcl/ast: just adding a GoSTringer impl

This commit is contained in:
Mitchell Hashimoto 2016-01-19 12:27:37 -08:00
parent 197e8d3cf4
commit 578dd97468

View File

@ -3,6 +3,7 @@
package ast
import (
"fmt"
"strings"
"github.com/hashicorp/hcl/hcl/token"
@ -202,3 +203,9 @@ type CommentGroup struct {
func (c *CommentGroup) Pos() token.Pos {
return c.List[0].Pos()
}
//-------------------------------------------------------------------
// GoStringer
//-------------------------------------------------------------------
func (o *ObjectKey) GoString() string { return fmt.Sprintf("*%#v", *o) }