gson

package module
v0.0.0-...-f320fb1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 0

README

GSON simple golang json encoder/decoder

Simple light-weigth json encoder/decoder, that operates on interface{} types

Methods

gson.Decode(runes []rune) (interface{}, error)

Accepts slice of runes and returns []interface{} or map[string]interface{} in case of success or nil, error in case of failure

gson.Encode(source interface{}) string

Encodes provided interface{} to json string, interface{} should be either []interface{} or map[string]interface{}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(runes []rune) (interface{}, error)

func Encode

func Encode(source interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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