(yamlStr string)
| 1103 | } |
| 1104 | |
| 1105 | func MustReadYAMLStr(yamlStr string) interface{} { |
| 1106 | parsed, err := ReadYAMLBytes([]byte(yamlStr)) |
| 1107 | if err != nil { |
| 1108 | exit.Panic(err) |
| 1109 | } |
| 1110 | return parsed |
| 1111 | } |
| 1112 | |
| 1113 | func MustReadYAMLStrMap(yamlStr string) map[string]interface{} { |
| 1114 | parsed, err := ReadYAMLBytes([]byte(yamlStr)) |