gob

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Gob is an endpoint for encoding and decoding of mathematical objects.

Universes

  • [integers]: An Object is of the form: { "Array": [string, ..., string] // required }

Here Array is an array of string representations of integers.

  • [rationals]: An Object is of the form: { "Array": [string, ..., string] // required }

Here Array is an array of string representations of rationals.

Operations

  • universes: The Arguments are empty. The Result is of the form: { "Universes": [string, ..., string] }

Here Universes is an array of all supported universes.

  • encode: The Arguments are of the form: { "Universe": string, // required "Value": Object // required }

Here the type Object of value depends on the universe. The Result is of the form:

{
	"Universe": string,
	"Encoding": string
}
  • decode: The Arguments are of the form: { "Universe": string, // required "Encoding": string // required }

The Result is of the form:

{
	"Universe": string,
	"Value": Object
}

Here the type Object of value depends on the universe.

Jump to

Keyboard shortcuts

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