github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/core/assets/README.md (about)

     1  How to create and update default chain config binary assets from JSON config
     2  defaults.
     3  
     4  ```bash
     5  # Install program to include external JSON files as binary resources
     6  go get github.com/omeid/go-resources/cmd/resources
     7  # Create dir
     8  mkdir config/assets
     9  # Compile JSON to assets package (avoid recompilation with the cache using
    10  package)
    11  ~/gocode/src/github.com/ethereumproject/go-ethereum resourceful-json-configs *% ⟠ resources -fmt -declare -var=DEFAULTS -package=assets -output=core/assets/assets.go core/config/*.json core/config/*.csv
    12  ```
    13  
    14  When using Makefile, changes in `.json` and `.csv` files will trigger rebuilding of binary assets.