Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ralxyz/lets-go
Implement basic CRUD operations using Golang
https://github.com/ralxyz/lets-go
golang
Last synced: 21 days ago
JSON representation
Implement basic CRUD operations using Golang
- Host: GitHub
- URL: https://github.com/ralxyz/lets-go
- Owner: RalXYZ
- License: cc0-1.0
- Created: 2020-10-19T12:19:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-15T16:40:37.000Z (about 4 years ago)
- Last Synced: 2024-11-19T06:29:05.287Z (about 2 months ago)
- Topics: golang
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Let's Go!
This is my first Golang project.
This project is about implementing basic CRUD operations using Golang, which is an assignment of QSC backend team.
The structure of `db.go` is provided by [@CHN-ChenYi](https://github.com/CHN-ChenYi)
The aim of this project is to create a simple server which has the following API:## POST /create
Sample request:
```
/create?id=RalXYZ&age=18
```Sample response:
```
uid = 1, RalXYZ, 18
```## GET /retrieve
Only supports retrieving by uid
Sample request
```
/retrieve?uid=1
```Sample response:
```
uid = 1, RalXYZ, 18
```## PUT /update
Sample request:
```
/update?uid=1&id=RalXYZ&age=17
```Sample response:
```
uid = 1, RalXYZ, 17
```## DELETE /delete
Only supports deleting by uid
Sample request
```
/delete?uid=1
```