rename Builder into semantic DataType

This commit is contained in:
Adrien Marquès 2020-03-14 16:16:30 +01:00
parent 511070196b
commit 6a144a9a93
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 2 additions and 2 deletions

View File

@ -4,9 +4,9 @@ package datatype
// and casts the value into a compatible type // and casts the value into a compatible type
type Validator func(value interface{}) (cast interface{}, valid bool) 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 // configuration field "type") and returns NIL if the type
// definition does not match this DataType // definition does not match this DataType
type Builder interface { type DataType interface {
Build(typeDefinition string) Validator Build(typeDefinition string) Validator
} }