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
2.7 KiB

// ------------------------------------------------------------------------
// Project atila
// Active Thing (activething.com) git.activething.com/go
//
// File name builderList.go
// Created by DEV
// Modified 18/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 pjson
import (
"activething.com/go/gogo/packs"
"time"
)
func (p *Builder) ItemAny (value any) { p.addSep(); p.Any(value) }
func (p *Builder) ItemBinary (value []byte){ p.addSep(); p.Binary(value) }
func (p *Builder) ItemString (value string){ p.addSep(); p.String(value) }
func (p *Builder) ItemBool (value bool) { p.addSep(); p.Bool(value) }
func (p *Builder) ItemRune (value rune) { p.addSep(); p.Rune(value) }
func (p *Builder) ItemInt8 (value int8) { p.addSep(); p.Int64(int64(value)) }
func (p *Builder) ItemInt16 (value int16) { p.addSep(); p.Int64(int64(value)) }
func (p *Builder) ItemInt32 (value int32) { p.addSep(); p.Int64(int64(value)) }
func (p *Builder) ItemInt64 (value int64) { p.addSep(); p.Int64(value) }
func (p *Builder) ItemUInt8 (value uint8) { p.addSep(); p.UInt64(uint64(value)) }
func (p *Builder) ItemUInt16 (value uint16){ p.addSep(); p.UInt64(uint64(value)) }
func (p *Builder) ItemUInt32 (value uint32){ p.addSep(); p.UInt64(uint64(value)) }
func (p *Builder) ItemUInt64 (value uint64){ p.addSep(); p.UInt64(value) }
func (p *Builder) ItemFloat32(value float32){ p.addSep(); p.Float64(float64(value)) }
func (p *Builder) ItemFloat64(value float64){ p.addSep(); p.Float64(value) }
func (p *Builder) ItemComplex64 (value complex64) { p.addSep(); p.Complex128(complex128(value)) }
func (p *Builder) ItemComplex128(value complex128) { p.addSep(); p.Complex128(value) }
func (p *Builder) ItemDate (value time.Time) { p.addSep(); p.Date(value) }
func (p *Builder) ItemList (builder func(packer packs.BuilderList)) { p.addSep(); p.ItemList(builder) }
func (p *Builder) ItemMap (builder func(packer packs.BuilderMap)) { p.addSep(); p.ItemMap(builder) }
func (p *Builder) ItemObject(builder func(packer packs.BuilderObject)){ p.addSep(); p.ItemObject(builder) }

Powered by TurnKey Linux.