Created an anonymous function for http.HandleFunc.

func(w http.ResponseWriter, r *http.Request) {
		openDoor(*splate)
		w.Write([]byte("Okay"))
	})

That anonymous function calles openDoor() with the correct arg, and then
writes "Okay" back to the ResponseWriter.