mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-11 05:39:03 +00:00
1. Fix the error return format.
**todo**: ~~`bindtype` needs more complex logic to fix it.~~
`
if err != nil {
return nil, err
}
if err == nil {
return obj, nil
}
`
2. ~~Return pointer type object to avoid copying the whole struct
content.~~
3. Give the panic decision to the user.
4. Fix empty line at the end of function.
**TODO**: ~~fix some related test cases.~~
---------
Co-authored-by: Jared Wasinger <j-wasinger@hotmail.com>
|
||
|---|---|---|
| .. | ||
| testdata/v2 | ||
| bind.go | ||
| bind_test.go | ||
| bindv2.go | ||
| bindv2_test.go | ||
| source.go.tpl | ||
| source2.go.tpl | ||
| template.go | ||