ssl - How to use http.Get in a TLSClient in Go? -


hi want perform request in go after creating tlsclient, example:

client, err := docker.newtlsclient(sconf.dockconf.endpoint, sconf.dockconf.cert, sconf.dockconf.key, sconf.dockconf.ca) 

then how can perform request in go?

not sure package using http package has newrequest function

req, _ := http.newrequest("get", url, nil) client.do(req) 

--edit

in addition, here full working tls example client certificates (i did not create gist)

https://gist.github.com/michaljemala/d6f4e01c4834bf47a9c4


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -