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 6ff0c21 commit fb7913a
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 @@ -265,7 +265,7 @@ func WithZigzag(zigzag bool) styleoption {

// Options are variadic but the required fiels must be passed
func NewStyle(fg, bg string, options ...styleoption) *style {
// You can also intialize the optional values explicitly
// You can also intialize the optional values explicitly
s := &style{fg: fg, bg: bg}
for _, opt := range options {
opt(s)
Expand Down

0 comments on commit fb7913a

Please sign in to comment.