From 9fdf684d601314831d1a291c4eb62d09508b4128 Mon Sep 17 00:00:00 2001 From: cglotr Date: Sat, 11 Jun 2022 19:26:41 +0800 Subject: [PATCH] add details on how to run generated code --- _tutorial/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tutorial/README.md b/_tutorial/README.md index f39fba2b..afa21f89 100644 --- a/_tutorial/README.md +++ b/_tutorial/README.md @@ -184,7 +184,7 @@ func InitializeEvent() Event { } ``` -It looks just like what we wrote above! Now this is a simple example with just +It looks just like what we wrote above! You can try running the code using `go run main.go wire_gen.go` to verify that the code works. Now this is a simple example with just three components, so writing the initializer by hand isn't too painful. Imagine how useful Wire is for components that are much more complex. When working with Wire, we will commit both `wire.go` and `wire_gen.go` to source control.