From 888655cc039937db4d93c586cd7c975177261eb8 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Wed, 28 Apr 2021 21:06:38 +0200 Subject: [PATCH] add String() method to zone This way we can print it in nicer ways. --- types/zone.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/zone.go b/types/zone.go index 0eec776..376c3f7 100644 --- a/types/zone.go +++ b/types/zone.go @@ -19,3 +19,7 @@ func (z *ZoneName) UnmarshalJSON(in []byte) error { *z = ZoneName(in) return nil } + +func (z ZoneName) String() string { + return string(z) +}