From 6a144a9a93ac0573a0a1cbe29d118fd3bb409b79 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 14 Mar 2020 16:16:30 +0100 Subject: [PATCH] rename Builder into semantic DataType --- config/datatype/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/datatype/types.go b/config/datatype/types.go index d015707..9bcefbb 100644 --- a/config/datatype/types.go +++ b/config/datatype/types.go @@ -4,9 +4,9 @@ package datatype // and casts the value into a compatible type type Validator func(value interface{}) (cast interface{}, valid bool) -// Builder builds a DataType from the type definition (from the +// DataType builds a DataType from the type definition (from the // configuration field "type") and returns NIL if the type // definition does not match this DataType -type Builder interface { +type DataType interface { Build(typeDefinition string) Validator }