Skip to content
Snippets Groups Projects
Select Git revision
  • 877cf2d6a7392cdcc81c6196bac752f1b1aa76ec
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
24 results

main.go

Blame
  • main.go 281 B
    package main
    
    import (
    	"log"
    	"net/http"
    
    	"github.com/mccutchen/go-httpbin/httpbin"
    )
    
    func main() {
    	h := httpbin.NewHTTPBin(&httpbin.Options{
    		MaxMemory: 1024 * 1024 * 5,
    	})
    	log.Printf("listening on 9999")
    	err := http.ListenAndServe(":9999", h.Handler())
    	log.Fatal(err)
    }