Trying to retrieve value "default-token-k99mq" from below JSON in go program ...
const input = `{
"kind": "ServiceAccount",
"apiVersion": "v1",
"metadata": {
"name": "default",
"namespace": "mynamespace",
"selfLink": "/api/v1/namespaces/mynamespace/serviceaccounts/default",
"uid": "483d1043-4d68-11e7-be08-3a3f3b149220",
"resourceVersion": "425039",
"creationTimestamp": "2017-06-09T23:06:34Z"
},
"secrets": [
{
"name": "default-token-k99mq"
}
]
}`
Need to get names from secrets
array