// ------------------------------------------------------------------------ // πŸš€ Project active3 // πŸ”— Active Thing (activething.com) git.activething.com/go // // File name value_builder.go // ✍️ Created by DEV // πŸ“… Modified 02/05/2024 // // πŸ”’ Copyright 2024 activething.com // // πŸ“œ LICENSE -------------------------------------------------------------- // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ------------------------------------------------------------------------ package blds import ( "reflect" "time" ) type ( // ValueBuilder define mΓ©todos para construir diferentes tipos de datos dentro de un valor estructurado. ValueBuilder interface { //Buildable (value Buildable) Any (value any) Raw (value []byte) Binary(value []byte) String(value string) Bool (value bool) Int (value int ) Int8 (value int8 ) Int16 (value int16) Int32 (value int32) Int64 (value int64) Uint (value uint ) Uint8 (value uint8 ) Uint16 (value uint16 ) Uint32 (value uint32 ) Uint64 (value uint64 ) Uintptr(value uintptr) Float32 (value float32) Float64 (value float64) Error (value error) Time (value time.Time ) Duration(value time.Duration) Reflect (value reflect.Value) List (buildFn func (b ListBuilder )) Map (buildFn func (b MapBuilder )) Object(buildFn func (b ObjectBuilder)) } )