Home

Awesome

Arche Serde

Test status Coverage Status Go Report Card Go Reference GitHub MIT license

Arche Serde provides JSON serialization and deserialization for the Arche Entity Component System (ECS).

<div align="center"> <a href="https://github.com/mlange-42/arche"> <img src="https://user-images.githubusercontent.com/44003176/236701164-28178d13-7e52-4449-baa4-41b764183cbd.png" alt="Arche (logo)" width="500px" /> </a> </div>

Features

Installation

go get github.com/mlange-42/arche-serde

Usage

See the API docs for more details and examples.
Go Reference

Serialize a world:

jsonData, err := archeserde.Serialize(&world)
if err != nil {
    // handle the error
}

Deserialize a world:

err = archeserde.Deserialize(jsonData, &world)
if err != nil {
    // handle the error
}

License

This project is distributed under the MIT licence.