From 9b3f2fddb1762d20e8297d6ee4c94dfc3be3aa11 Mon Sep 17 00:00:00 2001 From: Gibheer Date: Thu, 22 Apr 2021 08:42:33 +0200 Subject: [PATCH] add documentation for types package --- types/doc.go | 9 +++++++++ types/zone.go | 1 + 2 files changed, 10 insertions(+) create mode 100644 types/doc.go diff --git a/types/doc.go b/types/doc.go new file mode 100644 index 0000000..cc80371 --- /dev/null +++ b/types/doc.go @@ -0,0 +1,9 @@ +/* +Package types provides types to check incoming parameters for validity. + +Each type implements the UnmarshalJSON interface, so that it can be fed into +the Request parser. +At that time, each error in the parameter is catched and will result in an +error, so that clients are required to return the correct data. +*/ +package types diff --git a/types/zone.go b/types/zone.go index 1177427..13d0671 100644 --- a/types/zone.go +++ b/types/zone.go @@ -6,6 +6,7 @@ import ( ) type ( + // Zone represents the name of a zone. A zone must end with a `.`. Zone string )