MCPcopy
hub / github.com/ugorji/go

github.com/ugorji/go @v1.2.14 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.14 ↗
2,927 symbols 14,402 edges 78 files 437 documented · 15%
README

Sourcegraph Build and Test go-codec codecov Go Reference rcard License

go-codec

This repository contains the go-codec library, the codecgen tool and benchmarks for comparing against other libraries.

This is a High Performance, Feature-Rich Idiomatic Go 1.4+ codec/encoding library for binary and text formats: binc, msgpack, cbor, json and simple.

It fully supports the legacy GOPATH and the new go modules modes.

Code Organization and Module Support

This repository consists of 4 modules:

  • github.com/ugorji/go/codec README
  • github.com/ugorji/go/codec/codecgen (requires github.com/ugorji/go/codec) README
  • github.com/ugorji/go/codec/bench (requires github.com/ugorji/go/codec) README
  • github.com/ugorji/go (requires github.com/ugorji/go/codec)

For encoding and decoding, the github.com/ugorji/go/codec module is sufficient.

To install:

go get github.com/ugorji/go/codec

The other modules exist for specific uses, and all require github.com/ugorji/go/codec

Extension points exported contracts — how you extend this code

Selfer (Interface)
Selfer defines methods by which a value can encode or decode itself. Any type which implements Selfer will be able to e [33 …
codec/helper.go
Rpc (Interface)
Rpc provides a rpc Server or Client Codec for rpc communication. [2 implementers]
codec/rpc.go
BytesExt (Interface)
BytesExt handles custom (de)serialization of types to/from []byte. It is used by codecs (e.g. binc, msgpack, simple) whi [6 …
codec/helper.go
InterfaceExt (Interface)
InterfaceExt handles custom (de)serialization of types to/from another interface{} value. The Encoder or Decoder will th [6 …
codec/helper.go
MissingFielder (Interface)
MissingFielder defines the interface allowing structs to internally decode or encode values which do not map to struct f [3 …
codec/helper.go
MapBySlice (Interface)
MapBySlice is a tag interface that denotes the slice or array value should encode as a map in the stream, and can be dec
codec/helper.go

Core symbols most depended-on inside this repo

EncodeNil
called by 1252
codec/encode.go
EncodeString
called by 1032
codec/encode.go
WriteStr
called by 906
codec/writer.go
EncodeInt
called by 294
codec/encode.go
EncodeUint
called by 209
codec/encode.go
TryNil
called by 208
codec/decode.go
linef
called by 200
codec/gen.go
rv2i
called by 197
codec/helper_unsafe.go

Shape

Method 1,708
Function 811
Struct 238
TypeAlias 140
Interface 26
FuncType 3
Class 1

Languages

Go100%
Python1%

Modules by API surface

codec/codec_test.go351 symbols
codec/values_codecgen_generated_test.go320 symbols
codec/fast-path.generated.go315 symbols
codec/helper.go218 symbols
codec/helper_unsafe.go152 symbols
codec/decode.go143 symbols
codec/helper_not_unsafe.go118 symbols
codec/encode.go115 symbols
codec/gen.go93 symbols
codec/mammoth_generated_test.go83 symbols
codec/json.go83 symbols
codec/binc.go76 symbols

Dependencies from manifests, versioned

bitbucket.org/bodhisnarkva/cborv0.0.0-2017020101084 · 1×
github.com/Sereal/Sereal/Go/serealv0.0.0-2025030714041 · 1×
github.com/davecgh/go-xdrv0.0.0-2016112317135 · 1×
github.com/fxamacker/cbor/v2v2.8.0 · 1×
github.com/globalsign/mgov0.0.0-2018101513595 · 1×
github.com/goccy/go-jsonv0.10.5 · 1×
github.com/json-iterator/gov1.1.12 · 1×
github.com/mailru/easyjsonv0.9.0 · 1×
github.com/pquerna/ffjsonv0.0.0-2019093013402 · 1×
github.com/vmihailenco/msgpack/v4v4.3.13 · 1×

For agents

$ claude mcp add go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact