2021-02-21 08:27:19 -07:00
|
|
|
// errorcheck -d=panic
|
2011-07-28 10:31:16 -06:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-07-28 10:31:16 -06:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
|