update README.md
This commit is contained in:
parent
53e0f4374d
commit
3fd7ba0682
18
README.md
18
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
|
||||
```
|
Loading…
Reference in New Issue
Block a user