sjson

package module
v0.0.0-...-076379b Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: GPL-3.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHeaders map[string]string

Functions

func SetLogger

func SetLogger(l *slogger.Logger) *slogger.Logger

Types

type JSON

type JSON map[string]interface{}

func LoadJsonFromFileOrDie

func LoadJsonFromFileOrDie(File string, Purpose string) JSON

func NewJson

func NewJson() JSON

func NewJsonFromObject

func NewJsonFromObject(Input interface{}) *JSON

func NewJsonFromObjectPtr

func NewJsonFromObjectPtr(Input *interface{}) *JSON

func NewJsonFromString

func NewJsonFromString(Input string) JSON

func (*JSON) AddFromForm

func (j *JSON) AddFromForm(r *http.Request)

func (*JSON) Bytes

func (j *JSON) Bytes() []byte

func (*JSON) ExportAsIniString

func (j *JSON) ExportAsIniString() string

func (*JSON) ExportAsPerlCode

func (j *JSON) ExportAsPerlCode(Header string) string

func (*JSON) ExportAsPhpCode

func (j *JSON) ExportAsPhpCode(Header string) string

func (*JSON) Expose

func (j *JSON) Expose(Key string) *JSON

func (*JSON) ExposeArray

func (j *JSON) ExposeArray(Key string) JSONarray

func (*JSON) IngestFromBytes

func (j *JSON) IngestFromBytes(Input []byte) error

func (*JSON) IngestFromObject

func (j *JSON) IngestFromObject(Input interface{}) error

func (*JSON) IngestFromString

func (j *JSON) IngestFromString(Input string) error

func (*JSON) KeyBool

func (j *JSON) KeyBool(k string) bool

func (*JSON) KeyDecimal

func (j *JSON) KeyDecimal(k string) decimal.Decimal

func (*JSON) KeyFloat64

func (j *JSON) KeyFloat64(k string) float64

func (*JSON) KeyInt

func (j *JSON) KeyInt(k string) int

func (*JSON) KeyInt64

func (j *JSON) KeyInt64(k string) int64

func (*JSON) KeyIntFrom64

func (j *JSON) KeyIntFrom64(k string) int

func (*JSON) KeyIntFromFloat64

func (j *JSON) KeyIntFromFloat64(k string) int

func (*JSON) KeyJson

func (j *JSON) KeyJson(k string) *JSON

func (*JSON) KeyString

func (j *JSON) KeyString(k string) string

func (*JSON) New

func (j *JSON) New() *JSON

func (*JSON) ReadFromFile

func (j *JSON) ReadFromFile(Filename string) error

func (*JSON) ScanRow

func (j *JSON) ScanRow(Result *sql.Rows) error

func (*JSON) SendJsonPost

func (j *JSON) SendJsonPost(Client *http.Client, url string) (*http.Response, error)

func (*JSON) SpiderCopyIniFrom

func (j *JSON) SpiderCopyIniFrom(ini *ini.File)

func (*JSON) SpiderCopyIniSectionFrom

func (j *JSON) SpiderCopyIniSectionFrom(Section *ini.Section)

func (*JSON) SpiderCopyJsonFrom

func (j *JSON) SpiderCopyJsonFrom(Obj JSON)

func (*JSON) String

func (j *JSON) String() string

func (*JSON) TemplateString

func (j *JSON) TemplateString(Str string) string

func (*JSON) TestWritable

func (j *JSON) TestWritable(Filename string) error

func (*JSON) WriteToFile

func (j *JSON) WriteToFile(Filename string) error

type JSONarray

type JSONarray []JSON

func NewJsonArray

func NewJsonArray() JSONarray

func (*JSONarray) Bytes

func (j *JSONarray) Bytes() []byte

func (*JSONarray) IngestFromBytes

func (j *JSONarray) IngestFromBytes(Input []byte) error

func (*JSONarray) IngestFromObject

func (j *JSONarray) IngestFromObject(Input interface{}) error

func (*JSONarray) ScanRows

func (j *JSONarray) ScanRows(Result *sql.Rows) error

func (*JSONarray) String

func (j *JSONarray) String() string

Jump to

Keyboard shortcuts

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