Skip to content

Commit

Permalink
Publish blog on configuring options in Go, closes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
rednafi committed Sep 6, 2023
1 parent 59c803e commit bc0eb50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/go/configure_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ I first came across this pattern in Rob Pike's [blog] on the same topic.

While the functional factory pattern is the most intriguing one among the three, I almost
never reach for it unless I need my users to be able to configure large option structs with
many optional fields. It is rare and the extra indirection makes the code inscrutable. Also,
many optional fields. It's rare and the extra indirection makes the code inscrutable. Also,
it renders the IDE suggestions useless.

In most cases, you can get away with exporting the option struct `Stuff` and a companion
Expand Down

0 comments on commit bc0eb50

Please sign in to comment.