Skip to content
golang client library for
Branch: master
Clone or download

LocalTunnel Client Library for Go Build Status

A client library exposing localtunnel connections through a net.Listener implementation. While localtunnel only supports forwarding HTTP(S) connections, this is useful as you can hook it up to http.Server directly. Neat, if writing test-suites or command-line utilities exposing web-hooks of localtunnel.

// Setup a listener for localtunnel
listener, err := localtunnel.Listen(localtunnel.Options{})

// Create your server...
server := http.Server{
    Handler: http.HandleFunc(func(w http.ResponseWriter, r *http.Request) {

// Handle request from localtunnel

See documentation for more details.


This package is released under MPLv2.

You can’t perform that action at this time.