packageapiimport("context""errors""net/http")// Run starts the HTTP server and blocks until it exits.func(s*Server)Run(ctxcontext.Context)error{gofunc(){<-ctx.Done()_=s.http.Shutdown(context.Background())}()err:=s.http.ListenAndServe()iferrors.Is(err,http.ErrServerClosed){returnnil}returnerr}