Skip to content

Commit

Permalink
feat: introduce parser options
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed Jan 26, 2024
1 parent a67edfb commit b37cf87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package urn

type Option func(Machine)

func WithParsingMode(mode ParsingMode) Option {
return func(m Machine) {
m.WithParsingMode(mode)

Check failure on line 7 in options.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 1.20)

m.WithParsingMode undefined (type Machine has no field or method WithParsingMode)

Check failure on line 7 in options.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 1.21)

m.WithParsingMode undefined (type Machine has no field or method WithParsingMode)
}
}

0 comments on commit b37cf87

Please sign in to comment.