From 578dd9746824a54637686b51a41bad457a56bcef Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 19 Jan 2016 12:27:37 -0800 Subject: [PATCH] hcl/ast: just adding a GoSTringer impl --- hcl/ast/ast.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hcl/ast/ast.go b/hcl/ast/ast.go index 079d19e..f8bb71a 100644 --- a/hcl/ast/ast.go +++ b/hcl/ast/ast.go @@ -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) }