File: change-path-of-echo.patch

package info (click to toggle)
golang-github-labstack-echo.v3 3.3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 944 kB
  • sloc: makefile: 11
file content (590 lines) | stat: -rw-r--r-- 14,841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
From 1e886cdedf7f21560cc4d65bf64e930487e0f4f0 Mon Sep 17 00:00:00 2001
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Date: Fri, 4 Dec 2020 08:56:47 +0900
Subject: [PATCH] change path of echo

find . -name "*.go" | \
	xargs sed -ie "s@github.com/labstack/echo@github.com/labstack/echo.v3@g"

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 echo.go                            | 4 ++--
 middleware/basic_auth.go           | 2 +-
 middleware/basic_auth_test.go      | 2 +-
 middleware/body_dump.go            | 2 +-
 middleware/body_dump_test.go       | 2 +-
 middleware/body_limit.go           | 2 +-
 middleware/body_limit_test.go      | 2 +-
 middleware/compress.go             | 2 +-
 middleware/compress_test.go        | 2 +-
 middleware/cors.go                 | 2 +-
 middleware/cors_test.go            | 2 +-
 middleware/csrf.go                 | 2 +-
 middleware/csrf_test.go            | 2 +-
 middleware/jwt.go                  | 2 +-
 middleware/jwt_test.go             | 2 +-
 middleware/key_auth.go             | 2 +-
 middleware/key_auth_test.go        | 2 +-
 middleware/logger.go               | 2 +-
 middleware/logger_test.go          | 2 +-
 middleware/method_override.go      | 2 +-
 middleware/method_override_test.go | 2 +-
 middleware/middleware.go           | 2 +-
 middleware/proxy.go                | 2 +-
 middleware/proxy_1_11.go           | 2 +-
 middleware/proxy_1_11_n.go         | 2 +-
 middleware/proxy_1_11_test.go      | 2 +-
 middleware/proxy_test.go           | 2 +-
 middleware/recover.go              | 2 +-
 middleware/recover_test.go         | 2 +-
 middleware/redirect.go             | 2 +-
 middleware/redirect_test.go        | 2 +-
 middleware/request_id.go           | 2 +-
 middleware/request_id_test.go      | 2 +-
 middleware/rewrite.go              | 2 +-
 middleware/rewrite_test.go         | 2 +-
 middleware/secure.go               | 2 +-
 middleware/secure_test.go          | 2 +-
 middleware/slash.go                | 2 +-
 middleware/slash_test.go           | 2 +-
 middleware/static.go               | 2 +-
 middleware/static_test.go          | 2 +-
 41 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/echo.go b/echo.go
index 9828651..42ebb49 100644
--- a/echo.go
+++ b/echo.go
@@ -8,8 +8,8 @@ Example:
   import (
     "net/http"

-    "github.com/labstack/echo"
-    "github.com/labstack/echo/middleware"
+    "github.com/labstack/echo.v3"
+    "github.com/labstack/echo.v3/middleware"
   )

   // Handler
diff --git a/middleware/basic_auth.go b/middleware/basic_auth.go
index e6c9632..804b7a3 100644
--- a/middleware/basic_auth.go
+++ b/middleware/basic_auth.go
@@ -5,7 +5,7 @@ import (
 	"strconv"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/basic_auth_test.go b/middleware/basic_auth_test.go
index 54a608b..d7788c4 100644
--- a/middleware/basic_auth_test.go
+++ b/middleware/basic_auth_test.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/body_dump.go b/middleware/body_dump.go
index e64e5e1..151400d 100644
--- a/middleware/body_dump.go
+++ b/middleware/body_dump.go
@@ -8,7 +8,7 @@ import (
 	"net"
 	"net/http"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/body_dump_test.go b/middleware/body_dump_test.go
index daccd4d..5a5a083 100644
--- a/middleware/body_dump_test.go
+++ b/middleware/body_dump_test.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/body_limit.go b/middleware/body_limit.go
index c83f57e..0d5a79c 100644
--- a/middleware/body_limit.go
+++ b/middleware/body_limit.go
@@ -5,7 +5,7 @@ import (
 	"io"
 	"sync"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/bytes"
 )

diff --git a/middleware/body_limit_test.go b/middleware/body_limit_test.go
index 5659fa3..ff369fd 100644
--- a/middleware/body_limit_test.go
+++ b/middleware/body_limit_test.go
@@ -7,7 +7,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/compress.go b/middleware/compress.go
index b876009..8b5ba3c 100644
--- a/middleware/compress.go
+++ b/middleware/compress.go
@@ -9,7 +9,7 @@ import (
 	"net/http"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/compress_test.go b/middleware/compress_test.go
index a4c928a..7e59e00 100644
--- a/middleware/compress_test.go
+++ b/middleware/compress_test.go
@@ -8,7 +8,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/cors.go b/middleware/cors.go
index d8b633f..ac063e8 100644
--- a/middleware/cors.go
+++ b/middleware/cors.go
@@ -5,7 +5,7 @@ import (
 	"strconv"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/cors_test.go b/middleware/cors_test.go
index 95ef9b8..d04edfe 100644
--- a/middleware/cors_test.go
+++ b/middleware/cors_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/csrf.go b/middleware/csrf.go
index 477872e..a156374 100644
--- a/middleware/csrf.go
+++ b/middleware/csrf.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"time"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/random"
 )

diff --git a/middleware/csrf_test.go b/middleware/csrf_test.go
index 422ed5d..0badf2f 100644
--- a/middleware/csrf_test.go
+++ b/middleware/csrf_test.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/random"
 	"github.com/stretchr/testify/assert"
 )
diff --git a/middleware/jwt.go b/middleware/jwt.go
index 051c589..94d0dbb 100644
--- a/middleware/jwt.go
+++ b/middleware/jwt.go
@@ -7,7 +7,7 @@ import (
 	"strings"

 	"github.com/dgrijalva/jwt-go"
-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/jwt_test.go b/middleware/jwt_test.go
index fee6daa..3a6fe4f 100644
--- a/middleware/jwt_test.go
+++ b/middleware/jwt_test.go
@@ -6,7 +6,7 @@ import (
 	"testing"

 	"github.com/dgrijalva/jwt-go"
-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/key_auth.go b/middleware/key_auth.go
index c12f4ca..4919275 100644
--- a/middleware/key_auth.go
+++ b/middleware/key_auth.go
@@ -5,7 +5,7 @@ import (
 	"net/http"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/key_auth_test.go b/middleware/key_auth_test.go
index 3213fc0..0b2a2db 100644
--- a/middleware/key_auth_test.go
+++ b/middleware/key_auth_test.go
@@ -7,7 +7,7 @@ import (
 	"strings"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/logger.go b/middleware/logger.go
index dab3ef7..a7a577e 100644
--- a/middleware/logger.go
+++ b/middleware/logger.go
@@ -9,7 +9,7 @@ import (
 	"sync"
 	"time"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/color"
 	"github.com/valyala/fasttemplate"
 )
diff --git a/middleware/logger_test.go b/middleware/logger_test.go
index 98130b1..83a5f99 100644
--- a/middleware/logger_test.go
+++ b/middleware/logger_test.go
@@ -12,7 +12,7 @@ import (
 	"time"
 	"unsafe"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/method_override.go b/middleware/method_override.go
index 0a6103b..0ee2e8d 100644
--- a/middleware/method_override.go
+++ b/middleware/method_override.go
@@ -3,7 +3,7 @@ package middleware
 import (
 	"net/http"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/method_override_test.go b/middleware/method_override_test.go
index 4d44655..61d288e 100644
--- a/middleware/method_override_test.go
+++ b/middleware/method_override_test.go
@@ -6,7 +6,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/middleware.go b/middleware/middleware.go
index febbdae..c388218 100644
--- a/middleware/middleware.go
+++ b/middleware/middleware.go
@@ -5,7 +5,7 @@ import (
 	"strconv"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/proxy.go b/middleware/proxy.go
index 1789c75..b1db08e 100644
--- a/middleware/proxy.go
+++ b/middleware/proxy.go
@@ -13,7 +13,7 @@ import (
 	"sync/atomic"
 	"time"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 // TODO: Handle TLS proxy
diff --git a/middleware/proxy_1_11.go b/middleware/proxy_1_11.go
index 193015a..66cefac 100644
--- a/middleware/proxy_1_11.go
+++ b/middleware/proxy_1_11.go
@@ -7,7 +7,7 @@ import (
 	"net/http"
 	"net/http/httputil"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 func proxyHTTP(tgt *ProxyTarget, c echo.Context, config ProxyConfig) http.Handler {
diff --git a/middleware/proxy_1_11_n.go b/middleware/proxy_1_11_n.go
index d4620e2..733750d 100644
--- a/middleware/proxy_1_11_n.go
+++ b/middleware/proxy_1_11_n.go
@@ -3,7 +3,7 @@
 package middleware

 import (
-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"net/http"
 	"net/http/httputil"
 )
diff --git a/middleware/proxy_1_11_test.go b/middleware/proxy_1_11_test.go
index 25798e9..77b9e2d 100644
--- a/middleware/proxy_1_11_test.go
+++ b/middleware/proxy_1_11_test.go
@@ -8,7 +8,7 @@ import (
 	"net/url"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/proxy_test.go b/middleware/proxy_test.go
index 8614088..44637bb 100644
--- a/middleware/proxy_test.go
+++ b/middleware/proxy_test.go
@@ -7,7 +7,7 @@ import (
 	"net/url"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/recover.go b/middleware/recover.go
index 2a42c5b..4073b77 100644
--- a/middleware/recover.go
+++ b/middleware/recover.go
@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"runtime"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/recover_test.go b/middleware/recover_test.go
index 053c34f..d265e1e 100644
--- a/middleware/recover_test.go
+++ b/middleware/recover_test.go
@@ -6,7 +6,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/redirect.go b/middleware/redirect.go
index 422263d..0a48ca6 100644
--- a/middleware/redirect.go
+++ b/middleware/redirect.go
@@ -3,7 +3,7 @@ package middleware
 import (
 	"net/http"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 // RedirectConfig defines the config for Redirect middleware.
diff --git a/middleware/redirect_test.go b/middleware/redirect_test.go
index 811c430..2ec124e 100644
--- a/middleware/redirect_test.go
+++ b/middleware/redirect_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/request_id.go b/middleware/request_id.go
index f376c29..f4d760f 100644
--- a/middleware/request_id.go
+++ b/middleware/request_id.go
@@ -1,7 +1,7 @@
 package middleware

 import (
-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/random"
 )

diff --git a/middleware/request_id_test.go b/middleware/request_id_test.go
index c2b526c..f81a1cf 100644
--- a/middleware/request_id_test.go
+++ b/middleware/request_id_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/rewrite.go b/middleware/rewrite.go
index 1b32212..bbb8282 100644
--- a/middleware/rewrite.go
+++ b/middleware/rewrite.go
@@ -4,7 +4,7 @@ import (
 	"regexp"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/rewrite_test.go b/middleware/rewrite_test.go
index c73c486..f5da8fd 100644
--- a/middleware/rewrite_test.go
+++ b/middleware/rewrite_test.go
@@ -6,7 +6,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/secure.go b/middleware/secure.go
index 188c0c4..37a8844 100644
--- a/middleware/secure.go
+++ b/middleware/secure.go
@@ -3,7 +3,7 @@ package middleware
 import (
 	"fmt"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/secure_test.go b/middleware/secure_test.go
index f538892..7c29458 100644
--- a/middleware/secure_test.go
+++ b/middleware/secure_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/slash.go b/middleware/slash.go
index 9af56ca..fea59d1 100644
--- a/middleware/slash.go
+++ b/middleware/slash.go
@@ -1,7 +1,7 @@
 package middleware

 import (
-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 )

 type (
diff --git a/middleware/slash_test.go b/middleware/slash_test.go
index a19ffc1..6e6d355 100644
--- a/middleware/slash_test.go
+++ b/middleware/slash_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

diff --git a/middleware/static.go b/middleware/static.go
index 55485f3..5a13904 100644
--- a/middleware/static.go
+++ b/middleware/static.go
@@ -10,7 +10,7 @@ import (
 	"path/filepath"
 	"strings"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/labstack/gommon/bytes"
 )

diff --git a/middleware/static_test.go b/middleware/static_test.go
index b62406e..41ff498 100644
--- a/middleware/static_test.go
+++ b/middleware/static_test.go
@@ -5,7 +5,7 @@ import (
 	"net/http/httptest"
 	"testing"

-	"github.com/labstack/echo"
+	"github.com/labstack/echo.v3"
 	"github.com/stretchr/testify/assert"
 )

--
2.29.2