https://github.com/codegram01/gotman
A CLI tool for make Http request
https://github.com/codegram01/gotman
cli golang http-client linux tools
Last synced: about 1 year ago
JSON representation
A CLI tool for make Http request
- Host: GitHub
- URL: https://github.com/codegram01/gotman
- Owner: codegram01
- License: mit
- Created: 2024-08-08T12:53:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T13:01:05.000Z (over 1 year ago)
- Last Synced: 2025-01-31T23:57:36.447Z (about 1 year ago)
- Topics: cli, golang, http-client, linux, tools
- Language: Go
- Homepage: https://youtu.be/-oDIp2BBs6w
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
# ___
-*~*- # <_*_> ()_()
(o o) # (o o) (o o)
ooO--(_)--Ooo-8---(_)--OooooO--`o'--OooooO
```
# Gotman - A CLI tool for make Http request
Gotman is an CLI API Client write in Go.
It like Postman or Curl alternative
[Video when i create gotman](https://youtu.be/-oDIp2BBs6w)
# Feature
- Make api request (http request) like Postman
- Work in CLI, so you can test your api when ssh in Server
- Enable load file config, so type less than
# Benefit this projects
- Make a tool (write X from scratch)
- Deep understand Go:
+ http Client, Request, Response
+ bytes buffer
+ io Reader, Writer interface
+ How get user input, get user config file
## Usage
```sh
gotman
-u [Url]
-m [Method]
-h [Header]
-b [Body]
-f [File_Config]
```
Examples:
[example.gotman.sh](https://github.com/codegram01/gotman/blob/main/example/gotman.sh)
## Install
Prerequisites: [Install Golang](https://go.dev/doc/install)
### Option 1: Install Binary
```sh
go install github.com/codegram01/gotman@latest
```
### Option 2: Install and build from source
```sh
git clone https://github.com/codegram01/gotman.git
cd gotman
# Run code:
go run .
# Build
go build .
```
# Contribute
You are welcome to contribute this project.
Help me upgrade or test it.
Open issue or create fork and pull request to contribute