16 lines
237 B
Go
16 lines
237 B
Go
package parser
|
|
|
|
func Parse(blocks []MatchBlock) map[string]any {
|
|
|
|
result := make(map[string]any)
|
|
|
|
for _, b := range blocks {
|
|
input := b.GetContent()
|
|
|
|
key, value, _ := b.Block.Parse(input)
|
|
result[key] = value
|
|
}
|
|
|
|
return result
|
|
}
|