Refactoring (#43)

* Cleanup .gitignore

* Document minimum server version

* Become golint compliant

* Use pre defined http method

* Update dependencies

* Add i18n-extract target

* Add golint target

* Run check-style against all go files

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
This commit is contained in:
Hanzei 2019-06-22 16:15:48 +02:00 committed by GitHub
parent 2f14f54b59
commit 43af4d9cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 351 additions and 83 deletions

View file

@ -2,6 +2,7 @@ package main
import (
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
@ -12,7 +13,7 @@ func TestServeHTTP(t *testing.T) {
assert := assert.New(t)
plugin := Plugin{}
w := httptest.NewRecorder()
r := httptest.NewRequest("GET", "/", nil)
r := httptest.NewRequest(http.MethodGet, "/", nil)
plugin.ServeHTTP(nil, w, r)