GTTP - Go HTTP Client for Terminal UIs
TOC
Dependencies
GTTP
project is based on the awesome https://github.com/rivo/tview library to make terminal user interfaces.
Thanks to Rivo
It also used https://github.com/atotto/clipboard library "Provide copying and pasting to the Clipboard for Go".
Thanks to Ato Araki
Installation
# Download the Go project
$ go get github.com/joakim-ribier/gttp
# Build
$ cd $HOME/go/src/gttp
$ go build
# Execute
$ ./gttp data.json
Testing
$ go test ./...
? github.com/joakim-ribier/gttp/httpclient [no test files]
ok github.com/joakim-ribier/gttp/models 0.001s
$ go test -v ./...
? github.com/joakim-ribier/gttp/httpclient [no test files]
=== RUN TestDefaultValue
--- PASS: TestDefaultValue (0.00s)
PASS
ok github.com/joakim-ribier/gttp/models 0.001s
$ go test -cover ./...
? github.com/joakim-ribier/gttp/httpclient [no test files]
ok github.com/joakim-ribier/gttp/models 0.001s coverage: 6.1% of statements
Troubleshooting
Linux, Unix
⚠
If the shortcuts (copy/paste) do not work, read the README.md of clipboard for more specific information.
Linux, Unix (requires 'xclip' or 'xsel' command to be installed)
$ sudo apt install xclip