core: Fix Stringer on OutputState for types
The implementation of Stringer on OutputState previously assumed outputs may only be strings - we now no longer cast to string, instead using the built in formatting directives.
This commit is contained in:
parent
8403a465bc
commit
17f4777039
|
@ -635,8 +635,7 @@ type OutputState struct {
|
|||
}
|
||||
|
||||
func (s *OutputState) String() string {
|
||||
// This is a v0.6.x implementation only
|
||||
return fmt.Sprintf("%s", s.Value.(string))
|
||||
return fmt.Sprintf("%#v", s.Value)
|
||||
}
|
||||
|
||||
// Equal compares two OutputState structures for equality. nil values are
|
||||
|
|
Loading…
Reference in New Issue