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 5, 2023
1 parent 376c40f commit 539b349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/go/configure_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ The complete snippet looks as follows:
```go
package src

// We can keep style private
// We can keep the option struct private
type style struct {
fg string
bg string
und bool // Optional field
zigzag bool // Optional field
}

// This can be priave too since the users won't need it directly
// This can be priavate too since the users won't need it directly
type styleoption func(*style)

// We only define public config functions for the optional fields
Expand Down

0 comments on commit 539b349

Please sign in to comment.