π
Golang MVC
Simple MVC pattern for Golang
π§ͺ
Test

π
About
This is a simple MVC pattern for Golang. It's not a framework, it's just a simple pattern to help you organize your code.
π
How to use
π¦
Install
go run cmd/main.go
π
Get all soldiers
curl http://localhost:8080/soldier/
π
Add new soldier
curl -X POST -H "Content-Type: application/json" -d '{
"id": 2,
"name": "Alice",
"rank": "Sergeant",
"wife": "Eve",
"salary": 40000,
"home": true,
"car": false,
"corruption": false
}' http://localhost:8080/soldier/
π
Update soldier infomation
curl -X PUT -H "Content-Type: application/json" -d '{
"corruption": true
}' http://localhost:8080/soldier/2
π
Get soldier infomation
curl http://localhost:8080/soldier/2
π
Delete soldier
curl -X DELETE http://localhost:8080/soldier/2
π
License
This project is licensed under the MIT License - see the LICENSE file for details.