OLD | NEW |
1 package logs | 1 // Copyright 2017 The LUCI Authors. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at |
| 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. |
| 14 |
| 15 package main |
2 | 16 |
3 import ( | 17 import ( |
4 "errors" | 18 "errors" |
5 "fmt" | 19 "fmt" |
6 "io" | 20 "io" |
7 "log" | 21 "log" |
8 "net/http" | 22 "net/http" |
9 "strings" | 23 "strings" |
10 "sync" | 24 "sync" |
11 "time" | 25 "time" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 if content == nil { | 158 if content == nil { |
145 break | 159 break |
146 } | 160 } |
147 for _, line := range content.Lines { | 161 for _, line := range content.Lines { |
148 fmt.Fprint(w, line.Value) | 162 fmt.Fprint(w, line.Value) |
149 fmt.Fprint(w, line.Delimiter) | 163 fmt.Fprint(w, line.Delimiter) |
150 } | 164 } |
151 } | 165 } |
152 return nil | 166 return nil |
153 } | 167 } |
OLD | NEW |