ausocean / openfish

OpenFish is an open-source system written in GoLang for classifying marine species. Tasks involve importing video or image data, classifying and annotating data (both manually and automatically), searching, and more. It is expected that OpenFish will use utilize computer vision and machine learning techniques.
https://ausocean.github.io/openfish/
Other
6 stars 0 forks source link

Add a default implementation for encode/decode #150

Closed scott97 closed 4 months ago

scott97 commented 4 months ago

Closes issue https://github.com/ausocean/openfish/issues/3

Adds a default implementation for encoding/decoding entities using JSON marshal / unmarshal.

If you want to have custom implementations for encode and decode, you can implement the EntityEncoder interface (Encode method) and the EntityDecoder interface (Decode method)

Changes are backwards compatible and should not require any changes to consuming code.