Update format list generator to support aliases.
parent
4187d0dfda
commit
426c26c613
|
@ -51,8 +51,9 @@ var (
|
|||
muxingSupported := text[2] == 'E'
|
||||
text = text[4:]
|
||||
cols := strings.Fields(text)
|
||||
id := cols[0]
|
||||
ids := strings.Split(cols[0], ",")
|
||||
name := strings.Join(cols[1:], " ")
|
||||
for _, id := range ids {
|
||||
code += fmt.Sprintf(`
|
||||
// %s
|
||||
Format_%s = %q
|
||||
|
@ -68,6 +69,7 @@ var (
|
|||
`, name, strings.ToUpper(id), strings.ToUpper(id))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
code += `
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue