mirror of
https://github.com/wader/fq.git
synced 2024-12-26 15:02:28 +03:00
e9d9f8aef9
Rename s/interface{}/any/g Preparation for using generics in decode API and native jq funcations etc Remove some unused linter ignores as linter has been fixed
22 lines
390 B
Go
22 lines
390 B
Go
func decode(d *decode.D, in any) any {
|
|
d.FieldArray("headers", func(d *decode.D) {
|
|
for !d.End() {
|
|
d.TryFieldFormat("header", headerGroup)
|
|
}
|
|
})
|
|
|
|
d.FieldArray("frames", func(d *decode.D) {
|
|
for !d.End() {
|
|
d.TryFieldFormat("frame", mp3Group)
|
|
}
|
|
})
|
|
|
|
d.FieldArray("footers", func(d *decode.D) {
|
|
for !d.End() {
|
|
d.TryFieldFormat("footer", footerGroup)
|
|
}
|
|
})
|
|
|
|
return nil
|
|
}
|