Top 0.2% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 4.7% forks on proxy.golang.org
Top 1.3% docker downloads on proxy.golang.org
proxy.golang.org : github.com/fjl/gencodec
Command gencodec generates marshaling methods for struct types. When gencodec is invoked on a directory and type name, it creates a Go source file containing JSON, YAML and TOML marshaling methods for the type. The generated methods add features which the standard json package cannot offer. The gencodec:"required" tag can be used to generate a presence check for the field. The generated unmarshaling method returns an error if a required field is missing. Other struct tags are carried over as is. The "json", "yaml", "toml" tags can be used to rename a field when marshaling. Example: An invocation of gencodec can specify an additional 'field override' struct from which marshaling type replacements are taken. If the override struct contains a field whose name matches the original type, the generated marshaling methods will use the overridden type and convert to and from the original field type. If the override struct contains a field F of type T, which does not exist in the original type, and the original type has a method named F with no arguments and return type assignable to T, the method is called by Marshal*. If there is a matching method F but the return type or arguments are unsuitable, an error is raised. In this example, the specialString type implements json.Unmarshaler to enforce additional parsing rules. When json.Unmarshal is used with type foo, the specialString unmarshaler will be used to parse the value of SpecialField. The result of foo.Func() is added to the result on marshaling under the key `id`. If the input on unmarshal contains a key `id` this field is ignored. Field types in the override struct must be trivially convertible to the original field type. gencodec's definition of 'convertible' is less restrictive than the usual rules defined in the Go language specification. The following conversions are supported: If the fields are directly assignable, no conversion is emitted. If the fields are convertible according to Go language rules, a simple conversion is emitted. Example input code: The generated code will contain: If the fields are of map or slice type and the element (and key) types are convertible, a simple loop is emitted. Example input code: The generated code is similar to this snippet: Conversions between slices and arrays are supported. Example input code: The generated code is similar to this snippet: For some use cases, like configuration loading, you may wish to work with structs containing fields with a non-empty interface type. Package json supports encoding such types (it simply encodes the concrete type contained in the interface), but decoding is not supported. With gencodec, you can use the override struct to assign a concrete type that will be used for the interface. In the example below, the encoded struct has a field of type io.Writer. During decoding, the input is verified to be "stdout" or "stderr", and the appropriate writer is inserted.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/fjl/gencodec
Keywords:
json
, unmarshaller
, yaml
License: MIT
Latest release: 3 months ago
First release: about 3 years ago
Namespace: github.com/fjl
Dependent packages: 608
Dependent repositories: 1,116
Stars: 54 on GitHub
Forks: 28 on GitHub
Docker dependents: 20
Docker downloads: 6,892
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago
github.com/ak0nshin/go-ethereum v0.0.1
1 version - Latest release: 11 months agogithub.com/fesuert/go-ethereum v1.14.5
Go implementation of the Ethereum protocol1 version - Latest release: 12 months ago - 0 stars on GitHub
github.com/FeSuert/go-ethereum v1.14.5
Go implementation of the Ethereum protocol1 version - Latest release: 12 months ago - 0 stars on GitHub
github.com/etclabscore/core-geth v1.12.20
A highly configurable Go implementation of the Ethereum protocol.51 versions - Latest release: 12 months ago - 1 dependent package - 1 dependent repositories - 222 stars on GitHub
github.phpd.cn/etclabscore/core-geth v1.12.20
51 versions - Latest release: 12 months agogithub.1git.de/etclabscore/core-geth v1.12.20
51 versions - Latest release: 12 months agogithub.com/huahuayu/go-ethereum v1.14.5
Official Go implementation of the Ethereum protocol208 versions - Latest release: 12 months ago - 0 stars on GitHub
github.com/dessaya/go-ethereum v1.14.5
Package ethereum defines interfaces for interacting with Ethereum.223 versions - Latest release: 12 months ago - 1 dependent package - 4 dependent repositories - 0 stars on GitHub
github.com/qluvio/go-ethereum v1.14.5
Official Go implementation of the Ethereum protocol208 versions - Latest release: 12 months ago - 0 stars on GitHub
github.com/iotaledger/go-ethereum v1.14.5
Official Go implementation of the Ethereum protocol223 versions - Latest release: 12 months ago - 2 dependent repositories - 0 stars on GitHub
github.phpd.cn/ethereum/go-ethereum v1.14.5
208 versions - Latest release: 12 months agogithub.com/consumerlayer/go-ethereum v1.12.6
1 version - Latest release: 12 months agogithub.com/multiadaptive/domiconexec v0.0.1
domicon network v2.01 version - Latest release: 12 months ago - 0 stars on GitHub
github.com/MultiAdaptive/domiconexec v0.0.1
domicon network v2.01 version - Latest release: 12 months ago - 0 stars on GitHub
github.com/cerc-io/plugeth v1.13.14-cerc-2
Read-only mirror of https://git.vdb.to/cerc-io/plugeth (Fork of plugeth with any needed changes f...3 versions - Latest release: 12 months ago - 0 stars on GitHub
git.vdb.to/cerc-io/plugeth v1.13.14-cerc-2
3 versions - Latest release: 12 months agogithub.com/axiomesh/go-ethereum v1.13.14-3
A specialized adaptation of the official Go Ethereum protocol, enhancing and customizing for Axio...5 versions - Latest release: about 1 year ago - 6 dependent packages - 0 stars on GitHub
github.com/axiomesh/axiom-eth v1.13.14-3
A specialized adaptation of the official Go Ethereum protocol, enhancing and customizing for Axio...5 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/tgmtime/go-ethereum v1.0.0
Go implementation of the Ethereum protocol1 version - Latest release: about 1 year ago - 0 stars on GitHub
github.com/Brian-YuJC/Brian-go-ethereum-fork v0.0.1
Go implementation of the Ethereum protocol1 version - Latest release: about 1 year ago - 0 stars on GitHub
github.com/brian-yujc/brian-go-ethereum-fork v0.0.1
Go implementation of the Ethereum protocol1 version - Latest release: about 1 year ago - 0 stars on GitHub
github.com/foxytanuki/suave-geth v0.1.6-foxy.1
1 version - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/eprokhor/go-ethereum v1.13.15
1 version - Latest release: about 1 year agogithub.com/GavinY-Amber/go-ethereum v1.13.15
1 version - Latest release: about 1 year agogithub.com/gaviny-amber/go-ethereum v1.13.15
1 version - Latest release: about 1 year agogithub.com/axieinfinity/ronin v1.14.3
A DPoS blockchain with checkpoints committed to Ethereum.206 versions - Latest release: about 1 year ago - 1 dependent package - 39 stars on GitHub
git.wxl.best/ethereum/go-ethereum v1.14.3
9 versions - Latest release: about 1 year agogithub.com/LambdaIM/op-geth v1.101315.0
Package ethereum defines interfaces for interacting with Ethereum.2 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/lambdaim/op-geth v1.101315.0
2 versions - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/titantkx/go-ethereum v1.10.26-titan.1
Go implementation of the Ethereum protocol1 version - Latest release: about 1 year ago - 0 stars on GitHub
github.xiaoq7.com/ethereum/go-ethereum v1.14.0
204 versions - Latest release: about 1 year agogithub.com/KyberNetwork/geth v1.0.2
Official Go implementation of the Ethereum protocol11 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/kybernetwork/geth v1.0.2
Official Go implementation of the Ethereum protocol11 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/apenzk/op-geth v1.101311.0
75 versions - Latest release: about 1 year ago - 0 stars on GitHubgithub.phpd.cn/flashbots/suave-geth v0.1.5
7 versions - Latest release: about 1 year agogithub.com/zeroxbrock/suave-geth v0.1.5
7 versions - Latest release: about 1 year agogithub.com/tancehao/go-ethereum v1.0.1
Official Go implementation of the Ethereum protocol2 versions - Latest release: about 1 year ago - 0 stars on GitHub
git.vdb.to/roysc/plugeth v1.13.14-cerc-0
1 version - Latest release: about 1 year agogithub.com/shidoglobal/go-ethereum v1.0.0
1 version - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/ShidoGlobal/go-ethereum v1.0.0
1 version - Latest release: about 1 year agogithub.com/anomalyfi/op-geth v0.7.0
7 versions - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/AnomalyFi/op-geth v0.7.0
7 versions - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/domicon-labs/op-geth v1.2.2
Package ethereum defines interfaces for interacting with Ethereum.21 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/kyrdteam/go-ethereum v1.13.14
Official Go implementation of the Ethereum protocol6 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/KYRDTeam/go-ethereum v1.13.14
6 versions - Latest release: about 1 year agogithub.com/sakundi/go-ethereum v1.13.17
Official Go implementation of the Ethereum protocol207 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/swag-eag/go-ethereum v1.10.20
Package ethereum defines interfaces for interacting with Ethereum.2 versions - Latest release: about 1 year ago
github.com/wemixkanvas/go-ethereum v1.101308.3
go-ethereum for Kroma104 versions - Latest release: about 1 year ago - 4 stars on GitHub
github.com/light-scale/go-ethereum v1.101308.3
go-ethereum for Kroma104 versions - Latest release: about 1 year ago - 4 stars on GitHub
github.com/horizenofficial/go-ethereum v1.1.0
Official Go implementation of the Ethereum protocol9 versions - Latest release: about 1 year ago - 1 stars on GitHub
github.com/b-harvest/go-ethereum v1.13.14
Official Go implementation of the Ethereum protocol204 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/vechain/go-ethereum v1.13.14
Package ethereum defines interfaces for interacting with Ethereum.202 versions - Latest release: about 1 year ago - 3 dependent repositories - 0 stars on GitHub
github.com/cerc-io/go-ethereum v1.13.14
Official Go implementation of the Ethereum protocol303 versions - Latest release: about 1 year ago - 4 dependent packages - 1 dependent repositories - 12 stars on GitHub
github.imxd.top/ethereum/go-ethereum v1.13.14
202 versions - Latest release: about 1 year agogithub.chickoi.com/ethereum/go-ethereum v1.13.14
60 versions - Latest release: about 1 year agogithub.skymusic.top/ethereum/go-ethereum v1.13.14
202 versions - Latest release: about 1 year agogithub.com/bitquery/go-ethereum v1.13.14
Official Go implementation of the Ethereum protocol205 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/vulcanize/go-ethereum v1.13.14
Package ethereum defines interfaces for interacting with Ethereum.306 versions - Latest release: about 1 year ago - 15 dependent repositories - 11 stars on
github.com/settlus/go-ethereum v1.13.14
Package ethereum defines interfaces for interacting with Ethereum.203 versions - Latest release: about 1 year ago - 0 stars on GitHub
github.com/AkilaChain/go-ethereum v1.10.26-akila-rc2
1 version - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/akilachain/go-ethereum v1.10.26-akila-rc2
1 version - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/RollNA/go-ethereum v1.13.13
Official Go implementation of the Ethereum protocol204 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/rollna/go-ethereum v1.13.13
Official Go implementation of the Ethereum protocol204 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/domicon-labs/domicon-geth v1.13.13
203 versions - Latest release: over 1 year agogithub.com/gpeng32965465/op-geth v1.0.0
1 version - Latest release: over 1 year agogithub.com/flashbots/suave-execution-geth v0.0.1-alpha.1-dev-04
Official Go implementation of the Ethereum protocol6 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/Rethereum-blockchain/go-rethereum v1.13.5
Package ethereum defines interfaces for interacting with Ethereum.194 versions - Latest release: over 1 year ago - 1 stars on GitHub
github.com/muku314115/go-ethereum v1.13.12
Official Go implementation of the Ethereum protocol202 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/fastexlabs/bahamut-execution v1.2.0
6 versions - Latest release: over 1 year agogithub.hscsec.cn/etclabscore/core-geth v1.12.19
50 versions - Latest release: over 1 year agogithub.com/muku314115/go-eth v1.0.0
1 version - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/bnoieh/op-geth v1.4.4
36 versions - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/hemilabs/op-geth v1.101305.3
58 versions - Latest release: over 1 year ago - 1 stars on GitHubgithub.com/aitimate-0/go-ethereum v1.99.0
Official Go implementation of the Ethereum protocol203 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/oswaldindex/go-ethereum v0.0.1
1 version - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/tirogen/go-ethereum v1.13.12
Package ethereum defines interfaces for interacting with Ethereum.201 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/mapprotocol/go-ethereum v1.13.11
Official Go implementation of the Ethereum protocol201 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/justin-crypted/go-ethereum v1.13.11
Package ethereum defines interfaces for interacting with Ethereum.18 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/6923403/go-ethereum v1.13.11
Official Go implementation of the Ethereum protocol | Pow version199 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/kstadium/go-ethereum v1.13.11
200 versions - Latest release: over 1 year agogithub.com/hijung/go-ethereum v0.1.0
1 version - Latest release: over 1 year agogithub.com/iconloop/go-ethereum v0.1.0
1 version - Latest release: over 1 year agogithub.com/bastionbaz/op-geth v0.0.0-20240122165330-2915dae88314
Package ethereum defines interfaces for interacting with Ethereum.1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/subaru-network/go-subaru v0.0.0-20240121175907-62c3d7fb287c
Package subaru defines interfaces for interacting with Subaru.1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/chainupcloud/op-geth-scroll v1.0.0
Package ethereum defines interfaces for interacting with Ethereum.1 version - Latest release: over 1 year ago
github.com/Vigo-Tea/go-ethereum-ant v0.0.0-20240114080517-5a031d5719b2
Package ethereum defines interfaces for interacting with Ethereum.2 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/rgeraldes24/go-zond v0.1.0
1 version - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/ws4charlie/go-ethereum v1.13.10
Package ethereum defines interfaces for interacting with Ethereum.198 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/Particle-Network/particle-geth v1.13.10
1 version - Latest release: over 1 year agogithub.com/berachain/polaris-geth v1.13.10
Official Go implementation of the Ethereum protocol185 versions - Latest release: over 1 year ago - 11 dependent packages - 141 stars on GitHub
github.com/tenderly/op-geth v0.0.0-20240111151431-468447e194bc
Package ethereum defines interfaces for interacting with Ethereum.5 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/jjang-network/go-jjang v0.0.0-20240111144140-0146c16287e3
Package jjang defines interfaces for interacting with Jjang.1 version - Latest release: over 1 year ago
github.com/tenderly/nitro v0.0.0-20231227141403-dbef5ee680c6
11 versions - Latest release: over 1 year ago - 1 dependent repositories - 1 stars on GitHubgithub.com/engram-network/striatum v0.0.0-20231226020905-3debb8d19ea7
Package ethereum defines interfaces for interacting with Ethereum.1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/literocks/go-ethereum v1.13.2
fork of go-ethereum2 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/LiteRocks/go-ethereum v1.13.2
Package ethereum defines interfaces for interacting with Ethereum.2 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/ymakanic/y-chain v1.13.8
196 versions - Latest release: over 1 year ago - 0 stars on GitHubgithub.com/k2build/geth v1.0.2
Package ethereum defines interfaces for interacting with Ethereum.3 versions - Latest release: over 1 year ago - 0 stars on GitHub
github.com/confero-network/go-confero v0.0.0-20231220132917-3a14799e2278
Package confero defines interfaces for interacting with Confero.1 version - Latest release: over 1 year ago
github.com/xyz-ass/go-ethereum-l2 v1.43.1
Package ethereum defines interfaces for interacting with Ethereum.196 versions - Latest release: over 1 year ago - 0 stars on GitHub
Check this option to include packages that no longer depend on this package in their latest version but previously did.