golang reading json files to struct

preview_player
Показать описание
golang reading json file into a struct, then looping through it

[
{"fname":"Jo","sname":"Butler","gender":"F","height":172},
{"fname":"Hannah","sname":"Milne","gender":"F","height":171},
{"fname":"Stuart","sname":"Ramdeen","gender":"M","height":182},
{"fname":"Zishan","sname":"Sheikh","gender":"M","height":183},
{"fname":"Shiva","sname":"Basu","gender":"F","height":171},
{"fname":"Alec","sname":"Richardson","gender":"M","height":187}
]
Рекомендации по теме
Комментарии
Автор

So I need to parse the data I'm pulling in from the json file, given a part of the name of an AP, say, AP01.Jackson.pitt.pa. I'm needing to filter the data out to only output data ending with the pitt.pa, any idea how I can acheive this?

xXTECHxKNIGHTXx