Registry /
serialization / fumiama-go-simple-protobuf
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
simpleprotobuf
✓ github.com/fumiama/go-simple-protobuf
Marshals and unmarshals a simple map to/from protobuf format.
package main
import (
"fmt"
"log"
"github.com/fumiama/go-simple-protobuf"
)
func main() {
data := map[string]interface{}{"name": "Alice", "age": 30}
encoded, err := simpleprotobuf.Marshal(data)
if err != nil {
log.Fatal(err)
}
var decoded map[string]interface{}
err = simpleprotobuf.Unmarshal(encoded, &decoded)
if err != nil {
log.Fatal(err)
}
fmt.Println(decoded)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.