American Express interview question

How to mock in testing by using Go? How do you secure an API request? How do you authenticate a client?