command
module
Version:
v0.0.0-...-ad5256f
Opens a new window with list of versions in this module.
Published: Aug 26, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Rest Countries Go
Get information about countries via a RESTful API made by Go.
Build:
- Clone repository.
- Edit .env file and main.go to change
@host
var.
go get -u
swag init .
CGO_ENABLED=0 go build -ldflags "-s -w" .
Usage: ./rest-countries
Demo: https://rest-countries-go.herokuapp.com/
Endpoints:
Method |
Route |
GET |
/api/v1/all |
GET |
/api/v1/name/:name |
GET |
/api/v1/code/:code |
GET |
/api/v1/currency/:currency |
GET |
/api/v1/language/:language |
GET |
/api/v1/capital/:capital |
GET |
/api/v1/calling/:code |
GET |
/api/v1/region/:region |
GET |
/api/v1/regional-block/:block |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.