update README.md
This commit is contained in:
		
							
								
								
									
										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 | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user