From 83066cd57f9f5a6e52772ff40d1f8b90e8e41392 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 13 Sep 2018 16:08:00 -0700 Subject: [PATCH] states: Support non-string primitives in state string representation --- states/state_string.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/states/state_string.go b/states/state_string.go index 2e03f5ff4..f9202f820 100644 --- a/states/state_string.go +++ b/states/state_string.go @@ -231,6 +231,8 @@ func (m *Module) testString() string { mapBuf.WriteString("}") buf.WriteString(fmt.Sprintf("%s = %s\n", k, mapBuf.String())) + default: + buf.WriteString(fmt.Sprintf("%s = %#v\n", k, lv)) } } }