json

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

JSON serialization and deserialization of backgammon

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress added in v0.1.3

func Compress(boardSerialization string) string

Given the result of Serialize(), returns a URL-safe base64 representation of a flate-compressed form of the result (using a custom flate dictionary). (See the `compress/flate` library.)

func Decompress added in v0.1.3

func Decompress(compressedUrlSafeBase64Board string) (string, error)

func Deserialize

func Deserialize(s string) (*brd.Board, error)

func Serialize

func Serialize(b *brd.Board) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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