{"repo":"ngrok/ngrok-go","free":true,"listed":false,"github":"https://github.com/ngrok/ngrok-go","clone":"git clone https://github.com/ngrok/ngrok-go.git","description":"Embed ngrok secure ingress into your Go apps as a net.Listener with a single line of code.","language":"Go","stars":872,"topics":["golang","golang-library","ngrok","go"],"license":"MIT","category":"networking-infra","readme_excerpt":"ngrok-go ngrok is an API gateway cloud service that forwards to applications running anywhere. ngrok-go is an open source and idiomatic Go package for embedding ngrok networking directly into your Go applications. If you've used ngrok before, you can think of ngrok-go as the ngrok agent packaged as a Go library. ngrok-go enables you to serve Go apps on the internet in a single line of code without setting up low-level network primitives like IPs, certificates, load balancers and even ports! Applications using ngrok-go listen on ngrok's global cloud service but, they receive connections using the same interface (net.Listener) that any Go app would expect if it listened on a local port. For working with the ngrok API, check out the ngrok Go API Client Library. Installation Install ngrok-go with go get . Documentation - ngrok-go API Reference on pkg.go.dev. - ngrok Documentation for what you can do with ngrok. - Examples are another great way to get started. - ngrok-go launch announcement for more context on why we built it. The examples in the blog post may be out of date for the new API. Quickstart The following example starts a Go web server that receives traffic from an endpoint on ngrok's cloud service with a randomly-assigned URL. The ngrok URL provided when running this example is accessible by anyone with an internet connection. You need an ngrok authtoken to run the following example, which you can get from the ngrok dashboard. Run this example with the following comman","default_branch":null,"files":null,"tree":[],"storefront":"/r/ngrok","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ngrok/ngrok-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}