docs: improve test coverage and update CI configurations
- Update badge text from "Build Status" to "Run Tests" - Change code block language from unspecified to `sh` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Server-Sent Events
|
# Server-Sent Events
|
||||||
|
|
||||||
[](https://pkg.go.dev/github.com/gin-contrib/sse)
|
[](https://pkg.go.dev/github.com/gin-contrib/sse)
|
||||||
[](https://github.com/gin-contrib/sse/actions/workflows/go.yml)
|
[](https://github.com/gin-contrib/sse/actions/workflows/go.yml)
|
||||||
[](https://codecov.io/gh/gin-contrib/sse)
|
[](https://codecov.io/gh/gin-contrib/sse)
|
||||||
[](https://goreportcard.com/report/github.com/gin-contrib/sse)
|
[](https://goreportcard.com/report/github.com/gin-contrib/sse)
|
||||||
|
|
||||||
@@ -34,7 +34,8 @@ func httpHandler(w http.ResponseWriter, req *http.Request) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```
|
|
||||||
|
```sh
|
||||||
event: message
|
event: message
|
||||||
data: some data\\nmore data
|
data: some data\\nmore data
|
||||||
|
|
||||||
@@ -49,7 +50,8 @@ data: {"content":"hi!","date":1431540810,"user":"manu"}
|
|||||||
```go
|
```go
|
||||||
fmt.Println(sse.ContentType)
|
fmt.Println(sse.ContentType)
|
||||||
```
|
```
|
||||||
```
|
|
||||||
|
```sh
|
||||||
text/event-stream
|
text/event-stream
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user