json

package
v1.2.153 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

Functions

func AnyJSON

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

func ByteAsString added in v1.0.11512

func ByteAsString(b []byte) string

func Element

func Element(value any) string

func SliceJSON

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

func StreamAnyJSON

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

func StreamByteAsString added in v1.0.11512

func StreamByteAsString(qw422016 *qt422016.Writer, b []byte)

func StreamElement

func StreamElement(qw422016 *qt422016.Writer, value any)

func StreamMap added in v1.2.3

func StreamMap[E comparable, T any](w *quicktemplate.Writer, value map[E]T)

func StreamSlice added in v1.2.3

func StreamSlice[T any](w *quicktemplate.Writer, value []T)

func StreamSliceJSON

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

func StreamString added in v1.0.11512

func StreamString(qw422016 *qt422016.Writer, str 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 any)

func String added in v1.0.11512

func String(str 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 WriteByteAsString added in v1.0.11512

func WriteByteAsString(qq422016 qtio422016.Writer, b []byte)

func WriteElement

func WriteElement(qq422016 qtio422016.Writer, value any)

func WriteSliceJSON

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

func WriteString added in v1.0.11512

func WriteString(qq422016 qtio422016.Writer, str string)

func WriteStringJSON added in v1.0.11512

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

Types

type Number added in v1.2.3

type Number interface {
	int | int64 | int32 | float32 | float64
}

Jump to

Keyboard shortcuts

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