This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tests | |
import ( | |
"testing" | |
jd "github.com/josephburnett/jd/lib" | |
"github.com/stretchr/testify/assert" | |
) | |
func TestJSONFuncs(t *testing.T) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gom "github.com/gogo/protobuf/proto" | |
gom "github.com/gogo/protobuf/protoc-gen-gogo" | |
gom "github.com/gogo/protobuf/gogoproto" | |
gom "github.com/tinylib/msgp" | |
gom "github.com/philhofer/fwd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define META_MAGIC "META" | |
#define META_MAGIC_COMPRESSED "METZ" | |
struct entry { | |
int offset; | |
int size; | |
}; | |
struct meta_layout { | |
char magic[4]; |