You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.9 KiB
62 lines
1.9 KiB
// ------------------------------------------------------------------------
|
|
// Project atila
|
|
// Active Thing (activething.com) git.activething.com/go
|
|
//
|
|
// File name pack_builder_object.go
|
|
// Created by DEV
|
|
// Modified 16/01/2024
|
|
//
|
|
// Copyright 2024 activething.com
|
|
// ------------------------------------------------------------------------
|
|
// 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 __packs
|
|
|
|
import "time"
|
|
|
|
type (
|
|
BuilderObject interface {
|
|
|
|
PropAny (name string, value any)
|
|
|
|
PropBinary (name string, value []byte)
|
|
PropString (name string, value string)
|
|
|
|
PropBool (name string, value bool)
|
|
PropRune (name string, value rune)
|
|
|
|
PropInt8 (name string, value int8)
|
|
PropInt16 (name string, value int16)
|
|
PropInt32 (name string, value int32)
|
|
PropInt64 (name string, value int64)
|
|
|
|
PropUInt8 (name string, value uint8)
|
|
PropUInt16 (name string, value uint16)
|
|
PropUInt32 (name string, value uint32)
|
|
PropUInt64 (name string, value uint64)
|
|
|
|
PropFloat32(name string, value float32)
|
|
PropFloat64(name string, value float64)
|
|
|
|
PropComplex64 (name string, value complex64)
|
|
PropComplex128(name string, value complex128)
|
|
|
|
PropDate(name string, value time.Time)
|
|
|
|
PropList (name string, builder func(packer BuilderList))
|
|
PropMap (name string, builder func(packer BuilderMap))
|
|
PropObject(name string, builder func(packer BuilderObject))
|
|
}
|
|
)
|