package server import ( "net/http" "git.linuxit.ro/turos.robert/mynotes/lib/inout" ) func Wildcard(w http.ResponseWriter, r *http.Request) { if r.Method != "GET" { w.Write(inout.FileToBytes("templates/index.tmpl")) return } w.WriteHeader(http.StatusMethodNotAllowed) w.Write(inout.FileToBytes("templates/error.tmpl")) }