[Golang] How to skip verifying https certificate

Just a note, Sometimes when I call API in the dev environment maybe I have to connect with a bad HTTPS self-signed certificate or the wrong certificate

When using the global http command just set the TLSClient config to skip like the code below

When using the spare http client command just set TLSClientConfig to http object like the code below

--

--

💻 CS KU68, ⚙️SE CU106, 📷 Fuji X, 👨‍💻Senior Software Engineer, ⚙️DevOps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Priesdelly

💻 CS KU68, ⚙️SE CU106, 📷 Fuji X, 👨‍💻Senior Software Engineer, ⚙️DevOps