-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.xml
More file actions
568 lines (245 loc) · 19.4 KB
/
Copy pathatom.xml
File metadata and controls
568 lines (245 loc) · 19.4 KB
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
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>xunle's blog</title>
<icon>https://xunle1.github.io/icon.png</icon>
<link href="https://xunle1.github.io/atom.xml" rel="self"/>
<link href="https://xunle1.github.io/"/>
<updated>2024-09-02T09:39:14.881Z</updated>
<id>https://xunle1.github.io/</id>
<author>
<name>荀乐</name>
</author>
<generator uri="https://hexo.io/">Hexo</generator>
<entry>
<title>Go init 函数顺序(转)</title>
<link href="https://xunle1.github.io/2024/09/02/Go-init%E5%87%BD%E6%95%B0%E9%A1%BA%E5%BA%8F/"/>
<id>https://xunle1.github.io/2024/09/02/Go-init%E5%87%BD%E6%95%B0%E9%A1%BA%E5%BA%8F/</id>
<published>2024-09-02T09:31:28.000Z</published>
<updated>2024-09-02T09:39:14.881Z</updated>
<summary type="html"><p>转自<a href="https://cloud.tencent.com/developer/article/2138066">一文读懂 Golang init 函数执行顺序</a></p>
<p>Go 语言中,<code>init</code></summary>
<category term="Go" scheme="https://xunle1.github.io/categories/Go/"/>
<category term="Go" scheme="https://xunle1.github.io/tags/Go/"/>
</entry>
<entry>
<title>Go 具名返回值</title>
<link href="https://xunle1.github.io/2024/09/02/Go%E5%85%B7%E5%90%8D%E8%BF%94%E5%9B%9E%E5%80%BC/"/>
<id>https://xunle1.github.io/2024/09/02/Go%E5%85%B7%E5%90%8D%E8%BF%94%E5%9B%9E%E5%80%BC/</id>
<published>2024-09-02T06:43:00.000Z</published>
<updated>2024-09-02T09:22:25.168Z</updated>
<summary type="html"><p>Go 语言可以对函数的返回值命名,返回值会被自动被初始化为零值而不需要你的处理,同时也可以使用“裸”返回语句。以下是 <a href="https://go.dev/tour/basics/7">A Tour of Go</a> 中的例子:</p>
<figure</summary>
<category term="Go" scheme="https://xunle1.github.io/categories/Go/"/>
<category term="Go" scheme="https://xunle1.github.io/tags/Go/"/>
</entry>
<entry>
<title>Go 指针接收者</title>
<link href="https://xunle1.github.io/2024/09/02/Go%E6%8C%87%E9%92%88%E6%8E%A5%E6%94%B6%E8%80%85/"/>
<id>https://xunle1.github.io/2024/09/02/Go%E6%8C%87%E9%92%88%E6%8E%A5%E6%94%B6%E8%80%85/</id>
<published>2024-09-02T06:09:31.000Z</published>
<updated>2024-09-02T07:15:42.272Z</updated>
<summary type="html"><p>Go 语言中可以对方法声明<strong>接收者</strong>,接收者类型可以是结构体也可以是接口。这意味着被声明的方法只能被该结构体或者是接口的实例调用。</p>
<p>语法如下:</p>
<figure class="highlight</summary>
<category term="Go" scheme="https://xunle1.github.io/categories/Go/"/>
<category term="Go" scheme="https://xunle1.github.io/tags/Go/"/>
</entry>
<entry>
<title>Go 中的初始化</title>
<link href="https://xunle1.github.io/2024/08/07/Go%E4%B8%AD%E7%9A%84%E5%88%9D%E5%A7%8B%E5%8C%96/"/>
<id>https://xunle1.github.io/2024/08/07/Go%E4%B8%AD%E7%9A%84%E5%88%9D%E5%A7%8B%E5%8C%96/</id>
<published>2024-08-07T11:22:31.000Z</published>
<updated>2024-09-02T07:13:54.183Z</updated>
<summary type="html"><p>Go 语言会在声明变量类型的时候进行初始化,如果没有指定值,那将会使用零值。各种类型的零值:</p>
<ul>
<li>int: 0</li>
<li>float: 0.0</li>
<li>bool: false</li>
<li>string:</summary>
<category term="Go" scheme="https://xunle1.github.io/categories/Go/"/>
<category term="Go" scheme="https://xunle1.github.io/tags/Go/"/>
</entry>
<entry>
<title>杂谈——毕业一年的无病呻吟</title>
<link href="https://xunle1.github.io/2024/08/05/%E6%9D%82%E8%B0%88%E2%80%94%E2%80%94%E6%AF%95%E4%B8%9A%E4%B8%80%E5%B9%B4/"/>
<id>https://xunle1.github.io/2024/08/05/%E6%9D%82%E8%B0%88%E2%80%94%E2%80%94%E6%AF%95%E4%B8%9A%E4%B8%80%E5%B9%B4/</id>
<published>2024-08-04T16:12:03.000Z</published>
<updated>2024-09-19T05:06:29.959Z</updated>
<summary type="html"><p>从 CQUPT 毕业一年时间,身份从学生转换到打工人也已经一年时间。一年以来关于生活和工作可能有许多想法,但都只是在脑海中绕了一圈,有的消失了,有的还留着。所以想用文字记录下当下的想法。</p>
<h1 id="离职"><a href="#离职"</summary>
<category term="杂谈" scheme="https://xunle1.github.io/categories/%E6%9D%82%E8%B0%88/"/>
<category term="生活" scheme="https://xunle1.github.io/tags/%E7%94%9F%E6%B4%BB/"/>
</entry>
<entry>
<title>HashMap 源码阅读</title>
<link href="https://xunle1.github.io/2024/07/10/HashMap%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/"/>
<id>https://xunle1.github.io/2024/07/10/HashMap%E6%BA%90%E7%A0%81%E9%98%85%E8%AF%BB/</id>
<published>2024-07-10T13:16:34.000Z</published>
<updated>2024-09-02T03:36:51.939Z</updated>
<summary type="html"><p>本文为阅读 HashMap 源码的笔记,主要了解 HashMap 增删改查的过程。</p>
<p>文中代码和描述基于 openjdk 17,HashMap 底层数据结构采用 <code>Node</code> 数组 + 链表 + 红黑树。</p>
<figure</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="HashMap" scheme="https://xunle1.github.io/tags/HashMap/"/>
<category term="源码" scheme="https://xunle1.github.io/tags/%E6%BA%90%E7%A0%81/"/>
<category term="Java" scheme="https://xunle1.github.io/tags/Java/"/>
</entry>
<entry>
<title>Chromium 定制开发</title>
<link href="https://xunle1.github.io/2024/04/01/Chromium-%E5%AE%9A%E5%88%B6%E5%BC%80%E5%8F%91/"/>
<id>https://xunle1.github.io/2024/04/01/Chromium-%E5%AE%9A%E5%88%B6%E5%BC%80%E5%8F%91/</id>
<published>2024-04-01T10:29:06.000Z</published>
<updated>2024-09-02T03:33:06.470Z</updated>
<summary type="html"><p>本文用于记录在工作中对 Chromium 的定制化开发。基于 84 版本 Chromium 浏览器。</p>
<h1 id="功能"><a href="#功能" class="headerlink" title="功能"></a>功能</h1><h2</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="Chromium" scheme="https://xunle1.github.io/tags/Chromium/"/>
</entry>
<entry>
<title>分布式</title>
<link href="https://xunle1.github.io/2022/12/04/%E5%88%86%E5%B8%83%E5%BC%8F/"/>
<id>https://xunle1.github.io/2022/12/04/%E5%88%86%E5%B8%83%E5%BC%8F/</id>
<published>2022-12-04T13:43:18.000Z</published>
<updated>2024-09-02T03:36:07.570Z</updated>
<summary type="html"><h1 id="分布式"><a href="#分布式" class="headerlink" title="分布式"></a>分布式</h1><h2 id="CAP"><a href="#CAP" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="概述" scheme="https://xunle1.github.io/tags/%E6%A6%82%E8%BF%B0/"/>
<category term="分布式" scheme="https://xunle1.github.io/tags/%E5%88%86%E5%B8%83%E5%BC%8F/"/>
</entry>
<entry>
<title>Java IO</title>
<link href="https://xunle1.github.io/2022/03/29/JavaIO/"/>
<id>https://xunle1.github.io/2022/03/29/JavaIO/</id>
<published>2022-03-28T17:11:43.000Z</published>
<updated>2024-09-02T03:37:28.193Z</updated>
<summary type="html"><h1 id="JavaNIO"><a href="#JavaNIO" class="headerlink" title="JavaNIO"></a>JavaNIO</h1><h2 id="概述"><a href="#概述" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="Java" scheme="https://xunle1.github.io/tags/Java/"/>
<category term="IO" scheme="https://xunle1.github.io/tags/IO/"/>
</entry>
<entry>
<title>Java 线程池</title>
<link href="https://xunle1.github.io/2022/03/29/Java%E7%BA%BF%E7%A8%8B%E6%B1%A0/"/>
<id>https://xunle1.github.io/2022/03/29/Java%E7%BA%BF%E7%A8%8B%E6%B1%A0/</id>
<published>2022-03-28T17:05:46.000Z</published>
<updated>2024-09-02T03:37:24.753Z</updated>
<summary type="html"><h1 id="为什么要使用线程池"><a href="#为什么要使用线程池" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="Java" scheme="https://xunle1.github.io/tags/Java/"/>
<category term="多线程" scheme="https://xunle1.github.io/tags/%E5%A4%9A%E7%BA%BF%E7%A8%8B/"/>
<category term="并发" scheme="https://xunle1.github.io/tags/%E5%B9%B6%E5%8F%91/"/>
</entry>
<entry>
<title>操作系统笔记</title>
<link href="https://xunle1.github.io/2022/03/29/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/"/>
<id>https://xunle1.github.io/2022/03/29/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/</id>
<published>2022-03-28T17:04:25.000Z</published>
<updated>2024-09-02T03:35:52.513Z</updated>
<summary type="html"><h1 id="操作系统"><a href="#操作系统" class="headerlink" title="操作系统"></a>操作系统</h1><h2 id="第一章"><a href="#第一章" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="概述" scheme="https://xunle1.github.io/tags/%E6%A6%82%E8%BF%B0/"/>
<category term="操作系统" scheme="https://xunle1.github.io/tags/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F/"/>
</entry>
<entry>
<title>计算机网络笔记</title>
<link href="https://xunle1.github.io/2022/03/29/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/"/>
<id>https://xunle1.github.io/2022/03/29/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/</id>
<published>2022-03-28T17:01:30.000Z</published>
<updated>2024-09-02T03:36:03.689Z</updated>
<summary type="html"><h1 id="计算机网络"><a href="#计算机网络" class="headerlink" title="计算机网络"></a>计算机网络</h1><h2 id="第一章-概述"><a href="#第一章-概述" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="计算机网络" scheme="https://xunle1.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/"/>
<category term="概述" scheme="https://xunle1.github.io/tags/%E6%A6%82%E8%BF%B0/"/>
</entry>
<entry>
<title>Java 类加载过程</title>
<link href="https://xunle1.github.io/2022/03/28/Java%E7%B1%BB%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B/"/>
<id>https://xunle1.github.io/2022/03/28/Java%E7%B1%BB%E5%8A%A0%E8%BD%BD%E8%BF%87%E7%A8%8B/</id>
<published>2022-03-28T01:12:39.000Z</published>
<updated>2024-09-02T03:37:17.700Z</updated>
<summary type="html"><h1 id="Java类加载过程"><a href="#Java类加载过程" class="headerlink" title="Java类加载过程"></a>Java类加载过程</h1><p>Java中类的加载过程如下图:</p>
<p><img</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="JVM" scheme="https://xunle1.github.io/tags/JVM/"/>
<category term="类加载" scheme="https://xunle1.github.io/tags/%E7%B1%BB%E5%8A%A0%E8%BD%BD/"/>
</entry>
<entry>
<title>WebSocket</title>
<link href="https://xunle1.github.io/2022/03/28/WebSocket/"/>
<id>https://xunle1.github.io/2022/03/28/WebSocket/</id>
<published>2022-03-28T01:09:01.000Z</published>
<updated>2024-09-02T03:37:49.347Z</updated>
<summary type="html"><h1 id="WebSocket"><a href="#WebSocket" class="headerlink" title="WebSocket"></a>WebSocket</h1><h2 id="概述"><a href="#概述" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="协议" scheme="https://xunle1.github.io/tags/%E5%8D%8F%E8%AE%AE/"/>
<category term="计算机网络" scheme="https://xunle1.github.io/tags/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/"/>
</entry>
<entry>
<title>Java 垃圾回收</title>
<link href="https://xunle1.github.io/2021/12/29/Java%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6/"/>
<id>https://xunle1.github.io/2021/12/29/Java%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6/</id>
<published>2021-12-29T07:39:57.000Z</published>
<updated>2024-09-02T03:37:13.930Z</updated>
<summary type="html"><h2 id="概述"><a href="#概述" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="JVM" scheme="https://xunle1.github.io/tags/JVM/"/>
<category term="垃圾回收" scheme="https://xunle1.github.io/tags/%E5%9E%83%E5%9C%BE%E5%9B%9E%E6%94%B6/"/>
</entry>
<entry>
<title>Java 单例模式</title>
<link href="https://xunle1.github.io/2021/11/04/Java%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F/"/>
<id>https://xunle1.github.io/2021/11/04/Java%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F/</id>
<published>2021-11-04T14:13:24.000Z</published>
<updated>2024-09-02T03:37:07.246Z</updated>
<summary type="html"><h1 id="单例模式"><a href="#单例模式" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="设计模式" scheme="https://xunle1.github.io/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/"/>
<category term="singleton" scheme="https://xunle1.github.io/tags/singleton/"/>
</entry>
<entry>
<title>Java 代理模式</title>
<link href="https://xunle1.github.io/2021/11/03/Java%E4%BB%A3%E7%90%86%E6%A8%A1%E5%BC%8F/"/>
<id>https://xunle1.github.io/2021/11/03/Java%E4%BB%A3%E7%90%86%E6%A8%A1%E5%BC%8F/</id>
<published>2021-11-03T13:41:20.000Z</published>
<updated>2024-09-02T03:36:56.676Z</updated>
<summary type="html"><h1 id="代理模式"><a href="#代理模式" class="headerlink"</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="proxy" scheme="https://xunle1.github.io/tags/proxy/"/>
<category term="设计模式" scheme="https://xunle1.github.io/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/"/>
</entry>
<entry>
<title>Java 内存区域</title>
<link href="https://xunle1.github.io/2021/09/07/Java%E5%86%85%E5%AD%98%E5%8C%BA%E5%9F%9F/"/>
<id>https://xunle1.github.io/2021/09/07/Java%E5%86%85%E5%AD%98%E5%8C%BA%E5%9F%9F/</id>
<published>2021-09-07T14:46:10.000Z</published>
<updated>2024-09-02T03:37:21.268Z</updated>
<summary type="html"><h1 id="Java内存区域"><a href="#Java内存区域" class="headerlink" title="Java内存区域"></a>Java内存区域</h1><p><strong>JDK 1.8以前:</strong></p>
<p><img</summary>
<category term="技术" scheme="https://xunle1.github.io/categories/%E6%8A%80%E6%9C%AF/"/>
<category term="内存区域" scheme="https://xunle1.github.io/tags/%E5%86%85%E5%AD%98%E5%8C%BA%E5%9F%9F/"/>
<category term="JVM" scheme="https://xunle1.github.io/tags/JVM/"/>
</entry>
<entry>
<title>浅谈 LRU 缓存机制算法题</title>
<link href="https://xunle1.github.io/2021/07/23/%E6%B5%85%E8%B0%88LRU%E7%BC%93%E5%AD%98%E6%9C%BA%E5%88%B6%E7%AE%97%E6%B3%95%E9%A2%98/"/>
<id>https://xunle1.github.io/2021/07/23/%E6%B5%85%E8%B0%88LRU%E7%BC%93%E5%AD%98%E6%9C%BA%E5%88%B6%E7%AE%97%E6%B3%95%E9%A2%98/</id>
<published>2021-07-23T12:03:02.000Z</published>
<updated>2024-09-02T03:36:26.239Z</updated>
<summary type="html"><h1 id="146-LRU-缓存机制"><a href="#146-LRU-缓存机制" class="headerlink" title="146. LRU 缓存机制"></a><a</summary>
<category term="算法题" scheme="https://xunle1.github.io/categories/%E7%AE%97%E6%B3%95%E9%A2%98/"/>
<category term="leetcode" scheme="https://xunle1.github.io/tags/leetcode/"/>
<category term="算法" scheme="https://xunle1.github.io/tags/%E7%AE%97%E6%B3%95/"/>
<category term="LRU" scheme="https://xunle1.github.io/tags/LRU/"/>
</entry>
<entry>
<title>LeetCode 刷题记录</title>
<link href="https://xunle1.github.io/2021/07/09/LeetCode%E5%88%B7%E9%A2%98%E8%AE%B0%E5%BD%95/"/>
<id>https://xunle1.github.io/2021/07/09/LeetCode%E5%88%B7%E9%A2%98%E8%AE%B0%E5%BD%95/</id>
<published>2021-07-09T06:30:25.000Z</published>
<updated>2024-09-02T03:37:40.302Z</updated>
<summary type="html"><h1 id="Leetcode"><a href="#Leetcode" class="headerlink" title="Leetcode"></a>Leetcode</h1><h2 id="1-两数之和"><a href="#1-两数之和"</summary>
<category term="算法题" scheme="https://xunle1.github.io/categories/%E7%AE%97%E6%B3%95%E9%A2%98/"/>
<category term="leetcode" scheme="https://xunle1.github.io/tags/leetcode/"/>
<category term="算法" scheme="https://xunle1.github.io/tags/%E7%AE%97%E6%B3%95/"/>
</entry>
</feed>