Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
@@ -20,7 +20,7 @@ import (
"time"
"github.com/gin-contrib/cors"
- "github.com/gin-gonic/gin"
+ "gopkg.in/gin-gonic/gin.v1"
)
func main() {
@@ -3,7 +3,7 @@ package cors
import (
"net/http"
type cors struct {
@@ -5,7 +5,7 @@ import (
"strings"
// Config represents all available options for the middleware.
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/stretchr/testify/assert"
func init() {
@@ -4,7 +4,7 @@ import (