diff options
| author | xengineering <me@xengineering.eu> | 2024-10-23 20:34:57 +0200 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2024-10-23 20:34:57 +0200 | 
| commit | e66691083a2455c29b50a2970c0aba1d6afca753 (patch) | |
| tree | 1f3192351038693b5fc219148fbc39cf2e869a87 /view/index_test.go | |
| parent | 9d14fee31507551149dcdf31c59798624330f3f3 (diff) | |
| download | ceres-e66691083a2455c29b50a2970c0aba1d6afca753.tar ceres-e66691083a2455c29b50a2970c0aba1d6afca753.tar.zst ceres-e66691083a2455c29b50a2970c0aba1d6afca753.zip | |
Switch to http.Handler
The used `func(http.ResponseWriter, *http.Request)` return values made
the HTTP handler factory functions quite unreadable. Thus it is switched
to the http.Handler type.
Diffstat (limited to 'view/index_test.go')
| -rw-r--r-- | view/index_test.go | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/view/index_test.go b/view/index_test.go index 3ab35d5..68167f6 100644 --- a/view/index_test.go +++ b/view/index_test.go @@ -14,7 +14,7 @@ func TestIndexRead(t *testing.T) {  	rec := httptest.NewRecorder() -	handler := http.HandlerFunc(IndexRead) +	handler := IndexRead()  	handler.ServeHTTP(rec, req)  	if rec.Code != http.StatusSeeOther { | 
