in block_value.go [35:50]
func fieldName(f reflect.StructField) (string, bool) {
attributeTag := f.Tag.Get("attribute")
tag := f.Tag.Get("hcl")
if attributeTag != "" {
tag = attributeTag
}
if tag == "" {
return f.Name, false
}
tagSegments := strings.Split(tag, ",")
if len(tagSegments) > 1 {
tag = tagSegments[0]
}
return tag, true
}