Skip to content
/ godat Public

Simple data serializer for Go 1.7+

License

Notifications You must be signed in to change notification settings

lokhman/godat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

godat - Simple data serializer for Go 1.7+

Build Status codecov License

Install

go get github.com/lokhman/godat

Usage

import "github.com/lokhman/godat"

func main() {
    var anyData = ...
    var unserializedData ...

    serializedBytes, err := godat.Marshal(anyData)
    if err != nil {
        panic(err)
    }
    
    err = godat.Unmarshal(serializedBytes, &unserializedData)
    if err != nil {
        panic(err)
    }
    
    // anyData == unserializedData
}

Tests

Use go test for testing.

License

Library is available under the MIT license. The included LICENSE file describes this in detail.

About

Simple data serializer for Go 1.7+

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages