Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bayusm0506/hcf-or-gcd-using-go-mux-framework
This Service just to run search Highest Common Factor using go Mux framework
https://github.com/bayusm0506/hcf-or-gcd-using-go-mux-framework
golang postman testing
Last synced: 4 days ago
JSON representation
This Service just to run search Highest Common Factor using go Mux framework
- Host: GitHub
- URL: https://github.com/bayusm0506/hcf-or-gcd-using-go-mux-framework
- Owner: bayusm0506
- Created: 2022-01-20T04:44:10.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T05:26:17.000Z (about 3 years ago)
- Last Synced: 2024-06-19T13:44:09.746Z (7 months ago)
- Topics: golang, postman, testing
- Language: Go
- Homepage:
- Size: 3.46 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HCF (Highest Common Factor)
This Service just to run search Highest Common Factor
## Clone Project
```bash
https://github.com/bayusm0506/hcf-or-gcd.git
cd /hcf-or-gcd
```## Structure Folder
```
├── app
│ ├── app.go
│ ├── controllers
│ │ ├── hcf.go
│ │ └── response.go
│ └── models
│ └── hcf.go
├── config
│ └── config.go
├── go.mod
├── go.sum
├── hcf-or-gcd
├── main.go
├── main_test.go
├── README.md
```## Installation
```bash
# Install mux router
go get -u github.com/gorilla/mux# Install godotenv
go get -u github.com/joho/godotenv# Install testify
go get github.com/stretchr/testify/assert
```## Usage
```go
# create file .env in root folder and add variable
APPS_PORT=2021# running project
go run main.go# or if you wanna run project with .exe file
go build
./hcf-or-gcd# Unit Testing
go test -v
```## API
#### HCF
```sh
POST : /api/hcf
```
```json
JSON :
{
"number1": 20,
"number2": 25
}
```
```
#### APP INFO#### Author originally
Bayu Setra Maulana [bayusm.com]Postman Collection : https://www.getpostman.com/collections/e6ac7bc82c04bdd3688d
```