appleboy/gofight

undefined: BasicEngine

bscott opened this issue · 0 comments

Using the example in the README, I'm receiving the following error.

Code:

package main

import (
  "github.com/appleboy/gofight"
  "github.com/stretchr/testify/assert"
  "net/http"
  "testing"
)

func TestBasicStatus(t *testing.T) {
  r := gofight.New()

  r.GET("/").
    // turn on the debug mode.
    SetDebug(true).
    Run(BasicEngine(), func(r gofight.HTTPResponse, rq gofight.HTTPRequest) {

      assert.Equal(t, "OK", r.Body.String())
      assert.Equal(t, http.StatusOK, r.Code)
    })
}

Error:

undefined: BasicEngine