From bc1b19c975765746171961907c60f2cdff9cf583 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Wed, 19 Jun 2024 17:18:02 -0400 Subject: [PATCH] Update notes --- learn_go_with_tests/dependency_injection/greet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn_go_with_tests/dependency_injection/greet.go b/learn_go_with_tests/dependency_injection/greet.go index a10d9c6..39b4b93 100644 --- a/learn_go_with_tests/dependency_injection/greet.go +++ b/learn_go_with_tests/dependency_injection/greet.go @@ -17,7 +17,7 @@ func Greet(writer io.Writer, name string) { // Here you can see that since now our greeter function takes an object that // implements the io.Writer interface we can now pass an object like the http.ResponseWriter -// to it. +// to it. DI let's us reuse our code in a new context. func MyGreeterHandler(w http.ResponseWriter, r *http.Request) { Greet(w, "world") }