settings section

This commit is contained in:
guwandyk committed 2026-07-04 18:34:30 +05:00
1 parent bbe5d219ad
commit 0c717101da
2867 files changed
+1118596 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
package parser
// Option represents parser's option.
type Option func(p *parser)
// AllowDuplicateMapKey allow the use of keys with the same name in the same map,
// but by default, this is not permitted.
func AllowDuplicateMapKey() Option {
return func(p *parser) {
p.allowDuplicateMapKey = true
}
}