update README.md

This commit is contained in:
Darko Luketic 2018-07-22 15:46:30 +02:00
parent 53e0f4374d
commit 3fd7ba0682
1 changed files with 18 additions and 0 deletions

View File

@ -4,6 +4,8 @@ Database changes notification library.
### Example
/main.go
```go
package main
@ -62,6 +64,8 @@ func (h *Handler) InsertDB(cx *gin.Context) {
}
```
/index.html
```html
<html>
<head>
@ -104,3 +108,17 @@ func (h *Handler) InsertDB(cx *gin.Context) {
</html>
```
then run
```bash
go run main.go
curl localhost:5000/acme/ins
```
```
.
├── index.html
└── main.go
0 directories, 2 files
```