json

package
v1.1.10068 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2021 License: GPL-3.0 Imports: 13 Imported by: 1

Documentation

Overview

формирование JSON из разного вида данных и выдача текста в поток

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyJSON

func AnyJSON(arrJSON map[string]interface{}) string

func ArrJSON

func ArrJSON(arrJSON []interface{}) string

func CheckFields

func CheckFields(fields map[string]*qb.QBField) string

func Element

func Element(value interface{}) string

func Float32Dimension added in v1.0.11512

func Float32Dimension(arrJSON []float32) string

func Float64Dimension added in v1.0.11512

func Float64Dimension(arrJSON []float64) string

func Int32Dimension added in v1.0.11512

func Int32Dimension(arrJSON []int32) string

func Int64Dimension added in v1.0.11512

func Int64Dimension(arrJSON []int64) string

func SimpleDimension

func SimpleDimension(arrJSON []interface{}) string

func SliceJSON

func SliceJSON(mapJSON []map[string]interface{}) string

func StreamAnyJSON

func StreamAnyJSON(qw422016 *qt422016.Writer, arrJSON map[string]interface{})

func StreamArrJSON

func StreamArrJSON(qw422016 *qt422016.Writer, arrJSON []interface{})

func StreamCheckFields

func StreamCheckFields(qw422016 *qt422016.Writer, fields map[string]*qb.QBField)

func StreamElement

func StreamElement(qw422016 *qt422016.Writer, value interface{})

func StreamFloat32Dimension added in v1.0.11512

func StreamFloat32Dimension(qw422016 *qt422016.Writer, arrJSON []float32)

func StreamFloat64Dimension added in v1.0.11512

func StreamFloat64Dimension(qw422016 *qt422016.Writer, arrJSON []float64)

func StreamInt32Dimension added in v1.0.11512

func StreamInt32Dimension(qw422016 *qt422016.Writer, arrJSON []int32)

func StreamInt64Dimension added in v1.0.11512

func StreamInt64Dimension(qw422016 *qt422016.Writer, arrJSON []int64)

func StreamSimpleDimension

func StreamSimpleDimension(qw422016 *qt422016.Writer, arrJSON []interface{})

func StreamSliceJSON

func StreamSliceJSON(qw422016 *qt422016.Writer, mapJSON []map[string]interface{})

func StreamStringDimension

func StreamStringDimension(qw422016 *qt422016.Writer, arrJSON []string)

func StreamStringJSON added in v1.0.11512

func StreamStringJSON(qw422016 *qt422016.Writer, arrJSON map[string]string)

func StreamWrap added in v1.0.11512

func StreamWrap(w *quicktemplate.Writer, value interface{})

func StringDimension

func StringDimension(arrJSON []string) string

func StringJSON added in v1.0.11512

func StringJSON(arrJSON map[string]string) string

func WriteAnyJSON

func WriteAnyJSON(qq422016 qtio422016.Writer, arrJSON map[string]interface{})

func WriteArrJSON

func WriteArrJSON(qq422016 qtio422016.Writer, arrJSON []interface{})

func WriteCheckFields

func WriteCheckFields(qq422016 qtio422016.Writer, fields map[string]*qb.QBField)

func WriteElement

func WriteElement(qq422016 qtio422016.Writer, value interface{})

func WriteFloat32Dimension added in v1.0.11512

func WriteFloat32Dimension(qq422016 qtio422016.Writer, arrJSON []float32)

func WriteFloat64Dimension added in v1.0.11512

func WriteFloat64Dimension(qq422016 qtio422016.Writer, arrJSON []float64)

func WriteInt32Dimension added in v1.0.11512

func WriteInt32Dimension(qq422016 qtio422016.Writer, arrJSON []int32)

func WriteInt64Dimension added in v1.0.11512

func WriteInt64Dimension(qq422016 qtio422016.Writer, arrJSON []int64)

func WriteSimpleDimension

func WriteSimpleDimension(qq422016 qtio422016.Writer, arrJSON []interface{})

func WriteSliceJSON

func WriteSliceJSON(qq422016 qtio422016.Writer, mapJSON []map[string]interface{})

func WriteStringDimension

func WriteStringDimension(qq422016 qtio422016.Writer, arrJSON []string)

func WriteStringJSON added in v1.0.11512

func WriteStringJSON(qq422016 qtio422016.Writer, arrJSON map[string]string)

Types

type FormStructure

type FormStructure struct {
	Action   string
	ClassCSS string
	IdCSS    string
	Name     string
	Events   map[string]string
}

func (*FormStructure) JSONAnyForm

func (thisForm *FormStructure) JSONAnyForm(table qb.QBTable, arrJSON map[string]interface{}) string

func (*FormStructure) StreamJSONAnyForm

func (thisForm *FormStructure) StreamJSONAnyForm(qw422016 *qt422016.Writer, table qb.QBTable, arrJSON map[string]interface{})

func (*FormStructure) WriteJSONAnyForm

func (thisForm *FormStructure) WriteJSONAnyForm(qq422016 qtio422016.Writer, table qb.QBTable, arrJSON map[string]interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL