From 176fc1841f80e5ca3668a08d5eb689354c6e01e9 Mon Sep 17 00:00:00 2001 From: rednafi Date: Tue, 5 Sep 2023 20:10:16 -0400 Subject: [PATCH] Publish blog on configuring options in Go, closes #41 --- content/go/configure_options.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/go/configure_options.md b/content/go/configure_options.md index 810b8cc..0bbdc64 100644 --- a/content/go/configure_options.md +++ b/content/go/configure_options.md @@ -167,10 +167,10 @@ field with a user-provided value. The implementation of this type would look as func (s *style) {s.fieldName = fieldValue} ``` -Next, we'll need to define a config function for each optional field in the struct where the -function will accept the field value and return another function with the `styleoption` -signature. The `WithUnd` and `WithZigzag` wrapper functions will be a part of the public API -that the users will use to configure `style`: +Next, we'll need to define a higher order config function for each optional field in the +struct where the function will accept the field value and return another function with the +`styleoption` signature. The `WithUnd` and `WithZigzag` wrapper functions will be a part of +the public API that the users will use to configure `style`: ```go // We only define config functions for the optional fields