mirror of
				https://github.com/goccy/go-yaml.git
				synced 2025-10-31 05:11:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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
 | |
| 	}
 | |
| }
 | 
