LEFT | RIGHT |
(no file at all) | |
| 1 // compile |
| 2 |
1 // Copyright 2011 The Go Authors. All rights reserved. | 3 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 4 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 5 // license that can be found in the LICENSE file. |
4 | 6 |
5 // This file contains the code snippets included in "Error Handling and Go." | 7 // This file contains the code snippets included in "Error Handling and Go." |
6 | 8 |
7 package main | 9 package main |
8 | 10 |
9 import ( | 11 import ( |
10 "net/http" | 12 "net/http" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 func (ds) NewKey(*ctx, string, string, int, *int) string { return "" } | 47 func (ds) NewKey(*ctx, string, string, int, *int) string { return "" } |
46 func (ds) Get(*ctx, string, *Record) error { return nil } | 48 func (ds) Get(*ctx, string, *Record) error { return nil } |
47 | 49 |
48 var datastore ds | 50 var datastore ds |
49 | 51 |
50 type Record struct{} | 52 type Record struct{} |
51 | 53 |
52 var viewTemplate *template.Template | 54 var viewTemplate *template.Template |
53 | 55 |
54 func main() {} | 56 func main() {} |
LEFT | RIGHT |