Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | 2f8190a | 2011-07-28 12:31:16 -0400 | [diff] [blame] | 2 | |
| 3 | // Copyright 2011 The Go Authors. All rights reserved. |
| 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file. |
| 6 | |
| 7 | // issue 1979 |
| 8 | // used to get internal compiler error too |
| 9 | |
| 10 | package main |
| 11 | |
| 12 | import ( |
Ian Lance Taylor | 1f27519 | 2011-09-20 16:47:17 -0700 | [diff] [blame] | 13 | "io/ioutil" // GCCGO_ERROR "imported and not used" |
Rob Pike | 6ab6c49 | 2011-11-08 15:38:47 -0800 | [diff] [blame] | 14 | "net/http" |
Ian Lance Taylor | 7dc1182 | 2012-10-30 20:56:32 -0700 | [diff] [blame] | 15 | "os" // GCCGO_ERROR "imported and not used" |
Russ Cox | 2f8190a | 2011-07-28 12:31:16 -0400 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | func makeHandler(fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc { |
Ian Lance Taylor | 1f27519 | 2011-09-20 16:47:17 -0700 | [diff] [blame] | 19 | return func(w http.ResponseWriter, r *http.Request) // ERROR "syntax error|invalid use of type" |
Russ Cox | 2f8190a | 2011-07-28 12:31:16 -0400 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | type Page struct { |
| 23 | Title string |
| 24 | Body []byte |
| 25 | } |
| 26 | |