add String() method to zone

This way we can print it in nicer ways.
This commit is contained in:
Gibheer 2021-04-28 21:06:38 +02:00
parent ee5acc6ded
commit 888655cc03
1 changed files with 4 additions and 0 deletions

View File

@ -19,3 +19,7 @@ func (z *ZoneName) UnmarshalJSON(in []byte) error {
*z = ZoneName(in)
return nil
}
func (z ZoneName) String() string {
return string(z)
}