资 源 简 介
Summary
This is a library written in C for creating and marshalling gobs as implemented by the Go standard libraries. See golang.org for more info.
Purpose
This library can be used to push structured data from C programs into a Go process over a socket or pipe in a format that can be decoded by a gob decoder. That way, an out-of-process C program can create fully-instantiated objects inside a Go application.
Please note that this is a very low-level library, and knowledge of the gob wire protocol is necessary prior to use. Please see the description at http://golang.org/pkg/gob/
Getting started
To get started, download the source code, and run the unit tests:
make test./test
Then create libgob.a with:
make
Encoding proceeds in three stages:
* Generate type ids: use