diff options
author | Ben Burwell <ben@benburwell.com> | 2019-09-24 12:02:13 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-09-24 12:02:13 -0400 |
commit | 33e6d3b9385fc2be6b8b3aa505f330724e6b4d28 (patch) | |
tree | 9ab9d8f58ed586deb6aa15c988707c4375b0b560 | |
parent | aeb2100b5acc764f1e22eaa197525edf8bc7e6c7 (diff) |
Use fmt.Printf
-rw-r--r-- | client/client_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/client_test.go b/client/client_test.go index bfb8480..a37f4e1 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -2,6 +2,7 @@ package client import ( "bytes" + "fmt" "io/ioutil" "net/http" "net/http/httptest" @@ -11,7 +12,7 @@ import ( func TestEncode(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("response")) + fmt.Fprint(w, "response") })) defer server.Close() client := CaesarClient{Endpoint: server.URL} // HL |