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
package main
import (
"log""net/http""github.com/deepmap/oapi-codegen/v2/examples/minimal-server/gorillamux/api"
)
funcmain() {
// create a type that satisfies the `api.ServerInterface`, which contains an implementation of every operation from the generated codeserver:=api.NewServer()
// get an `http.Handler` that we can use, but don't specify the routerh:=api.Handler(server)
s:=&http.Server{
Handler: h,
Addr: "0.0.0.0:8080",
}
// And we serve HTTP until the world ends.log.Fatal(s.ListenAndServe())
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: