gttp

command module
v0.0.0-...-2bde531 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 6 Imported by: 0

README

GTTP - Go HTTP Client for Terminal UIs

Go Report Card GolangCI Codeship Status for joakim-ribier/gttp

gttp

TOC

Dependencies

  • tview

GTTP project is based on the awesome https://github.com/rivo/tview library to make terminal user interfaces.

Thanks to Rivo

  • clipboard

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL