-
Notifications
You must be signed in to change notification settings - Fork 903
encoding/json: Add custom JSON package with build tag support for Sonic #1623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 45 commits
8333e5c
c47137c
6e24f60
b70b9e7
84dd409
711db77
223f786
9a72688
2f69362
79c85c9
b4f0243
417e0aa
83f1d57
f2d56cf
7bd7cc4
79ebfa1
6b6fb5e
ac47cc6
135e2b6
2d08549
1a82764
1ca8eaa
ab5fd01
1697977
3905b62
1c9f9c2
4f8e487
9cffc8f
1b15e4c
a7ac15d
f23f3c3
fba5316
880cd37
dde84c7
c936252
a843b58
09bac6c
a9ce5aa
625ae13
9fff614
b8a5070
9a52e19
9c154ca
ce01376
fcc0b27
d49cf8e
ad20589
c1f1216
00ebc20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,7 @@ However, we welcome pull requests for any exchange which does not match this cri | |
| + WebGUI (discontinued). | ||
| + Exchange HTTP mock testing. See [mock](/exchanges/mock/README.md). | ||
| + Exchange multichain deposits and withdrawals for specific exchanges. See [multichain transfer support](/docs/MULTICHAIN_TRANSFER_SUPPORT.md). | ||
| + Sonic JSON Integration. Revert back to the default Go 'encoding/json' package from the sonic library using go build tags `-tags=sonic_off`, by using the make file `make no_sonic`, or when compiling for a 32-bit architecture (GOARCH=386). | ||
|
|
||
| ## Development Tracking | ||
|
|
||
|
|
@@ -100,15 +101,11 @@ When submitting a PR, please abide by our coding guidelines: | |
| + Code must adhere to our [coding style](https://github.com/thrasher-corp/gocryptotrader/blob/master/.github/CONTRIBUTING.md). | ||
| + Pull requests need to be based on and opened against the `master` branch. | ||
|
|
||
| ## Compiling instructions | ||
| ## Compilation and run instructions | ||
|
||
|
|
||
| Download and install Go from [Go Downloads](https://golang.org/dl/) for your | ||
| platform. | ||
| Download and install Go from [Go Downloads](https://golang.org/dl/) for your platform. | ||
|
|
||
| ### Linux/OSX | ||
|
|
||
| GoCryptoTrader is built using [Go Modules](https://github.com/golang/go/wiki/Modules) and requires Go 1.11 or above | ||
| Using Go Modules you now clone this repository **outside** your GOPATH | ||
| ### Linux/macOS | ||
|
|
||
| ```bash | ||
| git clone https://github.com/thrasher-corp/gocryptotrader.git | ||
|
|
@@ -124,11 +121,18 @@ cp config_example.json ~/.gocryptotrader/config.json | |
| git clone https://github.com/thrasher-corp/gocryptotrader.git | ||
| cd gocryptotrader | ||
| go build | ||
| mkdir %AppData%\GoCryptoTrader | ||
| copy config_example.json %APPDATA%\GoCryptoTrader\config.json | ||
| ``` | ||
|
|
||
| By default, GoCryptoTrader uses the [Sonic JSON](https://github.com/bytedance/sonic) library for improved performance. To disable Sonic and revert to Go's encoding/json, build with the sonic_off tag: | ||
|
|
||
| ```bash | ||
| go build -tags=sonic_off | ||
| ``` | ||
|
|
||
| + Make any necessary changes to the `config.json` file. | ||
| + Run the `gocryptotrader` binary file inside your GOPATH bin folder. | ||
| + Run the gocryptotrader binary file. | ||
|
|
||
| ## Donations | ||
|
|
||
|
|
@@ -149,10 +153,10 @@ Binaries will be published once the codebase reaches a stable condition. | |
| |User|Contribution Amount| | ||
| |--|--| | ||
| | [thrasher-](https://github.com/thrasher-) | 704 | | ||
| | [shazbert](https://github.com/shazbert) | 358 | | ||
| | [shazbert](https://github.com/shazbert) | 359 | | ||
| | [dependabot[bot]](https://github.com/apps/dependabot) | 351 | | ||
| | [gloriousCode](https://github.com/gloriousCode) | 236 | | ||
| | [gbjk](https://github.com/gbjk) | 113 | | ||
| | [gbjk](https://github.com/gbjk) | 115 | | ||
| | [dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | 88 | | ||
| | [xtda](https://github.com/xtda) | 47 | | ||
| | [lrascao](https://github.com/lrascao) | 27 | | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.