make a little update
This commit is contained in:
		
							parent
							
								
									de984c3037
								
							
						
					
					
						commit
						c29d066842
					
				| 
						 | 
					@ -193,10 +193,10 @@ func handleFlatValues(content interface{}, parent *Block, name string) *Block {
 | 
				
			||||||
	c := new(Block)
 | 
						c := new(Block)
 | 
				
			||||||
	c.Parent = parent
 | 
						c.Parent = parent
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	switch reflect.ValueOf(content).Kind() {
 | 
						switch content.(type) {
 | 
				
			||||||
	case reflect.Bool:
 | 
						case bool:
 | 
				
			||||||
		c.Type = "boolean"
 | 
							c.Type = "boolean"
 | 
				
			||||||
	case reflect.Int, reflect.Float32, reflect.Float64:
 | 
						case int, float32, float64:
 | 
				
			||||||
		c.Type = "number"
 | 
							c.Type = "number"
 | 
				
			||||||
	default:
 | 
						default:
 | 
				
			||||||
		c.Type = "string"
 | 
							c.Type = "string"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue