Skip to content

Instantly share code, notes, and snippets.

@fsouza
Created April 19, 2013 00:22
Show Gist options
  • Select an option

  • Save fsouza/5417238 to your computer and use it in GitHub Desktop.

Select an option

Save fsouza/5417238 to your computer and use it in GitHub Desktop.
package main
import (
"github.com/fsouza/lb"
"net/http"
)
func main() {
l, _ := lb.NewLoadBalancer("http://localhost:8080", "http://localhost:8888", "http://localhost:9999")
http.Handle("/", l)
http.ListenAndServe(":6061", nil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment