2012-02-16 21:49:59 -07:00
|
|
|
// errorcheck
|
2011-07-28 10:31:16 -06:00
|
|
|
|
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// issue 1979
|
|
|
|
// used to get internal compiler error too
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2015-11-04 10:21:49 -07:00
|
|
|
// avoid imported and not used errors
|
|
|
|
// "io/ioutil"
|
2011-11-08 16:38:47 -07:00
|
|
|
"net/http"
|
2015-11-04 10:21:49 -07:00
|
|
|
// "os"
|
2011-07-28 10:31:16 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc {
|
2015-11-04 10:21:49 -07:00
|
|
|
return func(w http.ResponseWriter, r *http.Request) // ERROR "syntax error|not an expression|invalid use of type"
|
2011-07-28 10:31:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type Page struct {
|
|
|
|
Title string
|
|
|
|
Body []byte
|
|
|
|
}
|
|
|
|
|