How to access vault data using role_id and secret using golang api

i can login to vault ui and also having vault address , namespace , role_id and secret. though still couldn’t find some sample using golang to access vault data. most sample using token, which i don’t know how to generate . please suggest. thanks.