You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a type the following code but finding it hard to integrate certmagic
type Server struct {
Port int
Addr string
HTTPServer *http.Server
}
func (s *Server) Start(){
s.HTTPServer.ListenAndServe()
}
I set values for http.Server later on with (addr and handler) so I can just call http.ListenAndServe(), however certmagic.HTTPS() seems to require two arguments. Am I able to call certmagic and use the default addr, handler etc?
What have you already tried?
I tried just dropping certmagic.HTTPS([]string{"example.com"}) but this throws an error. There doesn't seem to any other high level call to just drop in.
Include any other information or discussion.
Bonus: What do you use this package for, and does it help you?
Hoping to use it for an API
The text was updated successfully, but these errors were encountered:
What is your question?
I have a type the following code but finding it hard to integrate certmagic
I set values for
http.Server
later on with (addr
andhandler
) so I can just callhttp.ListenAndServe()
, howevercertmagic.HTTPS()
seems to require two arguments. Am I able to callcertmagic
and use the defaultaddr
,handler
etc?What have you already tried?
I tried just dropping
certmagic.HTTPS([]string{"example.com"})
but this throws an error. There doesn't seem to any other high level call to just drop in.Include any other information or discussion.
Bonus: What do you use this package for, and does it help you?
Hoping to use it for an API
The text was updated successfully, but these errors were encountered: