From 178685b0659c01dffb253bb40a506b54795a2c98 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 11 Jan 2016 20:07:13 +0100 Subject: Add stringer to status --- messages.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'messages.go') diff --git a/messages.go b/messages.go index e5e77ae..bd673ba 100644 --- a/messages.go +++ b/messages.go @@ -110,6 +110,10 @@ func (s *Status) UnmarshalText(b []byte) error { return fmt.Errorf("unknown status %v", string(b)) } +func (s Status) String() string { + return status[s] +} + type Resource int const ( -- cgit v1.2.3