Skip to content

Commit

Permalink
chore: add github action badge
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Oct 2, 2021
1 parent 6a29b2b commit 0e098b6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# rollbar

[![Build Status](https://travis-ci.org/gin-contrib/rollbar.svg)](https://travis-ci.org/gin-contrib/rollbar)
[![Run Tests](https://github.com/gin-contrib/rollbar/actions/workflows/go.yml/badge.svg)](https://github.com/gin-contrib/rollbar/actions/workflows/go.yml)
[![codecov](https://codecov.io/gh/gin-contrib/rollbar/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/rollbar)
[![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/rollbar)](https://goreportcard.com/report/github.com/gin-contrib/rollbar)
[![GoDoc](https://godoc.org/github.com/gin-contrib/rollbar?status.svg)](https://godoc.org/github.com/gin-contrib/rollbar)
Expand Down Expand Up @@ -28,19 +28,19 @@ import "github.com/gin-contrib/rollbar"
package main

import (
"github.com/gin-contrib/rollbar"
"github.com/gin-gonic/gin"
"github.com/gin-contrib/rollbar"
"github.com/gin-gonic/gin"

roll "github.com/rollbar/rollbar-go"
roll "github.com/rollbar/rollbar-go"
)

func main() {
roll.SetToken("MY_TOKEN")
// roll.SetEnvironment("production") // defaults to "development"
roll.SetToken("MY_TOKEN")
// roll.SetEnvironment("production") // defaults to "development"

r := gin.Default()
r.Use(rollbar.Recovery(true))
r := gin.Default()
r.Use(rollbar.Recovery(true))

r.Run(":8080")
r.Run(":8080")
}
```

0 comments on commit 0e098b6

Please sign in to comment.