Skip to content

Commit

Permalink
fix: Go SDK Example (#477)
Browse files Browse the repository at this point in the history
The current example doesn't compile.
  • Loading branch information
jonstacks authored Nov 9, 2023
1 parent ffb2b23 commit 46e69a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/getting-started/go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func run(ctx context.Context) error {

log.Println("App URL", listener.URL())
// highlight-next-line
return http.Serve(tun, http.HandlerFunc(handler))
return http.Serve(listener, http.HandlerFunc(handler))
}

func handler(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -170,7 +170,7 @@ func run(ctx context.Context) error {
}

log.Println("App URL", listener.URL())
return http.Serve(tun, http.HandlerFunc(handler))
return http.Serve(listener, http.HandlerFunc(handler))
}

func handler(w http.ResponseWriter, r *http.Request) {
Expand Down

1 comment on commit 46e69a5

@vercel
Copy link

@vercel vercel bot commented on 46e69a5 Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ngrok-docs – ./

ngrok-docs.vercel.app
ngrok-docs-git-main-ngrok-dev.vercel.app
ngrok-docs-ngrok-dev.vercel.app

Please sign in to comment.