update README.md

This commit is contained in:
Darko Luketic 2018-07-22 15:46:30 +02:00
parent 53e0f4374d
commit 3fd7ba0682

View File

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