dsongo: muzzammil.xyz/dsongo Index | Files

package dson

import "muzzammil.xyz/dsongo"

Package dson implements encoding, decoding, marshaling, unmarshaling, and verification of the DSON (Doge Serialized Object Notation) as defined here: https://dogeon.xyz/.

Examples can be found here: https://muzzammil.xyz/dson.go

Version 1.0.0

MIT License; https://github.com/muhammadmuzzammil1998/dson.go/LICENSE

(c) 2018 Muhammad Muzzammil <email@muzzammil.xyz>


Package Files

dson.go helpers.go translator.go

func Decode Uses

func Decode(dson string) string

Decode decodes a DSON string into the JSON equivalent and retruns that JSON string

func Encode Uses

func Encode(json string) string

Encode encodes a JSON string into the DSON equivalent and retruns that DSON string

func Marshal Uses

func Marshal(v interface{}) (string, error)

Marshal returns the DSON encoding of v.

func Unmarshal Uses

func Unmarshal(dson string, v interface{}) error

Unmarshal parses the DSON-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an InvalidUnmarshalError.

func Valid Uses

func Valid(dson string) bool

Valid returns true if the input DSON string is valid, otherwise returns false

Package dson imports 6 packages (graph). Updated 2019-03-29. Refresh now. Tools for package owners.