Browse Source

update README.md

Darko Luketic 3 years ago
parent
commit
3fd7ba0682
1 changed files with 18 additions and 0 deletions
  1. 18 0
      README.md

+ 18 - 0
README.md

@@ -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
+```