trustwallet/ens-coincodec

Re-organize package structure

hewigovens opened this issue · 2 comments

move coins to specific folder, something like:

├── codec.go
├── codec_test.go
├── coins
│   ├── bitcoin
│   │   ├── bitcoin.go

My proposal is 3 simple folders:

  • coins: coin implementation files
  • common: common, not-coin-specific implementation
  • tests: test files, coins and common

I recommend to read this guide firstly. Especially https://github.com/uber-go/guide/blob/master/style.md#package-names