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 539b349 commit 176fc18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/go/configure_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 176fc18

Please sign in to comment.