-
Notifications
You must be signed in to change notification settings - Fork 146
/
main.html
834 lines (833 loc) · 43 KB
/
main.html
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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Go库文档</title>
<link type="text/css" rel="stylesheet" href="./index_files/style.css" />
<style type="text/css"></style>
<style>@-moz-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-webkit-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}embed,object{animation-duration:.001s;-ms-animation-duration:.001s;-moz-animation-duration:.001s;-webkit-animation-duration:.001s;-o-animation-duration:.001s;animation-name:nodeInserted;-ms-animation-name:nodeInserted;-moz-animation-name:nodeInserted;-webkit-animation-name:nodeInserted;-o-animation-name:nodeInserted;}</style>
<style type="text/css" id="8726384429"></style>
</head>
<body >
<div id="lowframe" style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div>
<!-- #lowframe -->
<div id="page" class="wide" tabindex="-1" style="outline: 0px;">
<div class="container">
<h1>Golang标准库文档</h1>
<form action="s.php" method="get">
<input type="text" name="s"><input type="submit" value="搜索">
</form>
<a href="https://github.com/polaris1119/pkgdoc/" target="_blank">github 开源项目</a> 欢迎有能力(翻译)的同学贡献,有何意见也可任意提出
<div id="nav"></div>
<h2 id="pkg-subdirectories">子目录</h2>
<div id="manual-nav">
<dl>
<dt>
<a href="#stdlib">标准库</a>
</dt>
<dt>
<a href="#other">其它包</a>
</dt>
<dd>
<a href="#subrepo">子代码库</a>
</dd>
<dd>
<a href="#community">社区</a>
</dd>
</dl>
</div>
<h2 id="stdlib">标准库</h2>
<img class="gopher" src="./index_files/pkg.png" />
<table class="dir">
<tbody>
<tr>
<th>名称</th>
<th> </th>
<th style="text-align: left; width: auto">摘要</th>
</tr>
<tr>
<td class="name"><a id="archive" href="#archive">archive</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/archive_tar.htm">tar</a></td>
<td> </td>
<td style="width: auto">tar包实现了tar格式压缩文件的存取.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/archive_zip.htm">zip</a></td>
<td> </td>
<td style="width: auto">zip包提供了zip档案文件的读写服务.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/bufio.htm">bufio</a></td>
<td> </td>
<td style="width: auto">bufio 包实现了带缓存的I/O操作.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/builtin.htm">builtin</a></td>
<td> </td>
<td style="width: auto">builtin 包为Go的预声明标识符提供了文档.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/bytes.htm">bytes</a></td>
<td> </td>
<td style="width: auto">bytes包实现了操作[]byte的常用函数.</td>
</tr>
<tr>
<td class="name"><a id="compress" href="#compress">compress</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/compress_bzip2.htm">bzip2</a></td>
<td> </td>
<td style="width: auto">bzip2包实现bzip2的解压缩.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/compress_flate.htm">flate</a></td>
<td> </td>
<td style="width: auto">flate包实现了deflate压缩数据格式,参见RFC 1951.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/compress_gzip.htm">gzip</a></td>
<td> </td>
<td style="width: auto">gzip包实现了gzip格式压缩文件的读写,参见RFC 1952.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/compress_lzw.htm">lzw</a></td>
<td> </td>
<td style="width: auto">lzw包实现了Lempel-Ziv-Welch数据压缩格式,这是一种T. A. Welch在“A Technique for High-Performance Data Compression”一文(Computer, 17(6) (June 1984), pp 8-19)提出的一种压缩格式.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/compress_zlib.htm">zlib</a></td>
<td> </td>
<td style="width: auto">zlib包实现了对zlib格式压缩数据的读写,参见RFC 1950.</td>
</tr>
<tr>
<td class="name"><a id="container" href="#container">container</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/container_heap.htm">heap</a></td>
<td> </td>
<td style="width: auto">heap包提供了对任意类型(实现了heap.Interface接口)的堆操作.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/container_list.htm">list</a></td>
<td> </td>
<td style="width: auto">list包实现了双向链表.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/container_ring.htm">ring</a></td>
<td> </td>
<td style="width: auto">ring实现了环形链表的操作.</td>
</tr>
<tr>
<td class="name"><a id="context" href="./pkg/context.htm">context</a></td>
<td> </td>
<td style="width: auto">Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.</td>
</tr>
<tr>
<td class="name"><a id="crypto" href="./pkg/crypto.htm">crypto</a></td>
<td> </td>
<td style="width: auto">crypto包搜集了常用的密码(算法)常量.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_aes.htm">aes</a></td>
<td> </td>
<td style="width: auto">aes包实现了AES加密算法,参见U.S. Federal Information Processing Standards Publication 197.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_cipher.htm">cipher</a></td>
<td> </td>
<td style="width: auto">cipher包实现了多个标准的用于包装底层块加密算法的加密算法实现.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_des.htm">des</a></td>
<td> </td>
<td style="width: auto">des包实现了DES标准和TDEA算法,参见U.S. Federal Information Processing Standards Publication 46-3.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_dsa.htm">dsa</a></td>
<td> </td>
<td style="width: auto">dsa包实现FIPS 186-3定义的数字签名算法(Digital Signature Algorithm),即DSA算法.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_ecdsa.htm">ecdsa</a></td>
<td> </td>
<td style="width: auto">ecdsa包实现了椭圆曲线数字签名算法,参见FIPS 186-3.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_elliptic.htm">elliptic</a></td>
<td> </td>
<td style="width: auto">elliptic包实现了几条覆盖素数有限域的标准椭圆曲线.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_hmac.htm">hmac</a></td>
<td> </td>
<td style="width: auto">hmac包实现了U.S. Federal Information Processing Standards Publication 198规定的HMAC(加密哈希信息认证码).</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_md5.htm">md5</a></td>
<td> </td>
<td style="width: auto">md5包实现了MD5哈希算法,参见RFC 1321.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_rand.htm">rand</a></td>
<td> </td>
<td style="width: auto">rand包实现了用于加解密的更安全的随机数生成器.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_rc4.htm">rc4</a></td>
<td> </td>
<td style="width: auto">rc4包实现了RC4加密算法,参见Bruce Schneier's Applied Cryptography.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_rsa.htm">rsa</a></td>
<td> </td>
<td style="width: auto">rsa包实现了PKCS#1规定的RSA加密算法.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_sha1.htm">sha1</a></td>
<td> </td>
<td style="width: auto">sha1包实现了SHA1哈希算法,参见RFC 3174.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_sha256.htm">sha256</a></td>
<td> </td>
<td style="width: auto">sha256包实现了SHA224和SHA256哈希算法,参见FIPS 180-4.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_sha512.htm">sha512</a></td>
<td> </td>
<td style="width: auto">sha512包实现了SHA384和SHA512哈希算法,参见FIPS 180-2.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_subtle.htm">subtle</a></td>
<td> </td>
<td style="width: auto">Package subtle implements functions that are often useful in cryptographic code but require careful thought to use correctly.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_tls.htm">tls</a></td>
<td> </td>
<td style="width: auto">tls包实现了TLS 1.2,细节参见RFC 5246.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_x509.htm">x509</a></td>
<td> </td>
<td style="width: auto">x509包解析X.509编码的证书和密钥.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/crypto_x509_pkix.htm">pkix</a></td>
<td> </td>
<td style="width: auto">pkix包提供了共享的、低层次的结构体,用于ASN.1解析和X.509证书、CRL、OCSP的序列化.</td>
</tr>
<tr>
<td class="name"><a href="#database" id="database">database</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/database_sql.htm">sql</a></td>
<td> </td>
<td style="width: auto">sql 包提供了通用的SQL(或类SQL)数据库接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/database_sql_driver.htm">driver</a></td>
<td> </td>
<td style="width: auto">driver包定义了应被数据库驱动实现的接口,这些接口会被sql包使用.</td>
</tr>
<tr>
<td class="name"><a id="debug" href="#debug">debug</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_dwarf.htm">dwarf</a></td>
<td> </td>
<td style="width: auto">Package dwarf provides access to DWARF debugging information loaded from executable files, as defined in the DWARF 2.0 Standard at http://dwarfstd.org/doc/dwarf-2.0.0.pdf</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_elf.htm">elf</a></td>
<td> </td>
<td style="width: auto">Package elf implements access to ELF object files.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_gosym.htm">gosym</a></td>
<td> </td>
<td style="width: auto">Package gosym implements access to the Go symbol and line number tables embedded in Go binaries generated by the gc compilers.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_macho.htm">macho</a></td>
<td> </td>
<td style="width: auto">Package macho implements access to Mach-O object files.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_pe.htm">pe</a></td>
<td> </td>
<td style="width: auto">Package pe implements access to PE (Microsoft Windows Portable Executable) files.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/debug_plan9obj.htm">plan9obj</a></td>
<td> </td>
<td style="width: auto">Package plan9obj implements access to Plan 9 a.out object files.</td>
</tr>
<tr>
<td class="name"><a id="encoding" href="./pkg/encoding.htm">encoding</a></td>
<td> </td>
<td style="width: auto">encoding包定义了供其它包使用的可以将数据在字节水平和文本表示之间转换的接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_ascii85.htm">ascii85</a></td>
<td> </td>
<td style="width: auto">ascii85 包是对 ascii85 的数据编码的实现.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_asn1.htm">asn1</a></td>
<td> </td>
<td style="width: auto">asn1包实现了DER编码的ASN.1数据结构的解析,参见ITU-T Rec X.690.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_base32.htm">base32</a></td>
<td> </td>
<td style="width: auto">base32包实现了RFC 4648规定的base32编码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_base64.htm">base64</a></td>
<td> </td>
<td style="width: auto">base64实现了RFC 4648规定的base64编码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_binary.htm">binary</a></td>
<td> </td>
<td style="width: auto">binary包实现了简单的数字与字节序列的转换以及变长值的编解码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_csv.htm">csv</a></td>
<td> </td>
<td style="width: auto">csv读写逗号分隔值(csv)的文件.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_gob.htm">gob</a></td>
<td> </td>
<td style="width: auto">gob包管理gob流——在编码器(发送器)和解码器(接受器)之间交换的binary值.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_hex.htm">hex</a></td>
<td> </td>
<td style="width: auto">hex包实现了16进制字符表示的编解码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_json.htm">json</a></td>
<td> </td>
<td style="width: auto">json包实现了json对象的编解码,参见RFC 4627.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_pem.htm">pem</a></td>
<td> </td>
<td style="width: auto">pem包实现了PEM数据编码(源自保密增强邮件协议).</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/encoding_xml.htm">xml</a></td>
<td> </td>
<td style="width: auto">Package xml implements a simple XML 1.0 parser that understands XML name spaces.</td>
</tr>
<tr>
<td class="name"><a id="errors" href="./pkg/errors.htm">errors</a></td>
<td> </td>
<td style="width: auto">error 包实现了用于错误处理的函数.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/expvar.htm">expvar</a></td>
<td> </td>
<td style="width: auto">expvar包提供了公共变量的标准接口,如服务的操作计数器.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/flag.htm">flag</a></td>
<td> </td>
<td style="width: auto">flag 包实现命令行标签解析.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/fmt.htm">fmt</a></td>
<td> </td>
<td style="width: auto">fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf.</td>
</tr>
<tr>
<td class="name"><a id="go" href="#go">go</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_ast.htm">ast</a></td>
<td> </td>
<td style="width: auto">Package ast declares the types used to represent syntax trees for Go packages.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_build.htm">build</a></td>
<td> </td>
<td style="width: auto">Package build gathers information about Go packages.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_constant.htm">constant</a></td>
<td> </td>
<td style="width: auto">Package constant implements Values representing untyped Go constants and their corresponding operations.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_doc.htm">doc</a></td>
<td> </td>
<td style="width: auto">Package doc extracts source code documentation from a Go AST.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_format.htm">format</a></td>
<td> </td>
<td style="width: auto">Package format implements standard formatting of Go source.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_importer.htm">importer</a></td>
<td> </td>
<td style="width: auto">Package importer provides access to export data importers.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_parser.htm">parser</a></td>
<td> </td>
<td style="width: auto">Package parser implements a parser for Go source files.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_printer.htm">printer</a></td>
<td> </td>
<td style="width: auto">Package printer implements printing of AST nodes.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_scanner.htm">scanner</a></td>
<td> </td>
<td style="width: auto">Package scanner implements a scanner for Go source text.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_token.htm">token</a></td>
<td> </td>
<td style="width: auto">Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates).</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/go_types.htm">types</a></td>
<td> </td>
<td style="width: auto">Package types declares the data types and implements the algorithms for type-checking of Go packages.</td>
</tr>
<tr>
<td class="name"><a id="hash" href="#hash">hash</a></td>
<td> </td>
<td style="width: auto">hash包提供hash函数的接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/hash_adler32.htm">adler32</a></td>
<td> </td>
<td style="width: auto">adler32包实现了Adler-32校验和算法,参见RFC 1950.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/hash_crc32.htm">crc32</a></td>
<td> </td>
<td style="width: auto">crc32包实现了32位循环冗余校验(CRC-32)的校验和算法.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/hash_crc64.htm">crc64</a></td>
<td> </td>
<td style="width: auto">Package crc64 implements the 64-bit cyclic redundancy check, or CRC-64, checksum.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/hash_fnv.htm">fnv</a></td>
<td> </td>
<td style="width: auto">fnv包实现了FNV-1和FNV-1a(非加密hash函数).</td>
</tr>
<tr>
<td class="name"><a href="./pkg/html.htm">html</a></td>
<td> </td>
<td style="width: auto">html包提供了用于转义和解转义HTML文本的函数.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/html_template.htm">template</a></td>
<td> </td>
<td style="width: auto">template包(html/template)实现了数据驱动的模板,用于生成可对抗代码注入的安全HTML输出.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/image.htm">image</a></td>
<td> </td>
<td style="width: auto">image实现了基本的2D图片库.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_color.htm">color</a></td>
<td> </td>
<td style="width: auto">color 包实现了基本的颜色库。</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_color_palette.htm">palette</a></td>
<td> </td>
<td style="width: auto">palette包提供了标准的调色板.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_draw.htm">draw</a></td>
<td> </td>
<td style="width: auto">draw 包提供组装图片的方法.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_gif.htm">gif</a></td>
<td> </td>
<td style="width: auto">gif 包实现了GIF图片的解码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_jpeg.htm">jpeg</a></td>
<td> </td>
<td style="width: auto">jpeg包实现了jpeg格式图像的编解码.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/image_png.htm">png</a></td>
<td> </td>
<td style="width: auto">png 包实现了PNG图像的编码和解码.</td>
</tr>
<tr>
<td class="name"><a id="index" href="#index">index</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/index_suffixarray.htm">suffixarray</a></td>
<td> </td>
<td style="width: auto">suffixarrayb包通过使用内存中的后缀树实现了对数级时间消耗的子字符串搜索.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/io.htm">io</a></td>
<td> </td>
<td style="width: auto">io 包为I/O原语提供了基础的接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/io_ioutil.htm">ioutil</a></td>
<td> </td>
<td style="width: auto">ioutil 实现了一些I/O的工具函数。</td>
</tr>
<tr>
<td class="name"><a href="./pkg/log.htm">log</a></td>
<td> </td>
<td style="width: auto">log包实现了简单的日志服务.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/log_syslog.htm">syslog</a></td>
<td> </td>
<td style="width: auto">syslog包提供一个简单的系统日志服务的接口.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/math.htm">math</a></td>
<td> </td>
<td style="width: auto">math 包提供了基本常数和数学函数。</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/math_big.htm">big</a></td>
<td> </td>
<td style="width: auto">big 包实现了(大数的)高精度运算.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/math_cmplx.htm">cmplx</a></td>
<td> </td>
<td style="width: auto">cmplx 包为复数提供了基本的常量和数学函数.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/math_rand.htm">rand</a></td>
<td> </td>
<td style="width: auto">rand 包实现了伪随机数生成器.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/mime.htm">mime</a></td>
<td> </td>
<td style="width: auto">mime实现了MIME的部分规定.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/mime_multipart.htm">multipart</a></td>
<td> </td>
<td style="width: auto">multipart实现了MIME的multipart解析,参见RFC 2046.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/mime_quotedprintable.htm">quotedprintable</a></td>
<td> </td>
<td style="width: auto">Package quotedprintable implements quoted-printable encoding as specified by RFC 2045.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/net.htm">net</a></td>
<td> </td>
<td style="width: auto">net包提供了可移植的网络I/O接口,包括TCP/IP、UDP、域名解析和Unix域socket.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http.htm">http</a></td>
<td> </td>
<td style="width: auto">http包提供了HTTP客户端和服务端的实现.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_cgi.htm">cgi</a></td>
<td> </td>
<td style="width: auto">cgi 包实现了RFC3875协议描述的CGI(公共网关接口).</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_cookiejar.htm">cookiejar</a></td>
<td> </td>
<td style="width: auto">cookiejar包实现了保管在内存中的符合RFC 6265标准的http.CookieJar接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_fcgi.htm">fcgi</a></td>
<td> </td>
<td style="width: auto">fcgi 包实现了FastCGI协议.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_httptest.htm">httptest</a></td>
<td> </td>
<td style="width: auto">httptest 包提供HTTP测试的单元工具.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_httptrace.htm">httptrace</a></td>
<td> </td>
<td style="width: auto">Package httptrace provides mechanisms to trace the events within HTTP client requests.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_httputil.htm">httputil</a></td>
<td> </td>
<td style="width: auto">httputil包提供了HTTP公用函数,是对net/http包的更常见函数的补充.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_http_pprof.htm">pprof</a></td>
<td> </td>
<td style="width: auto">pprof 包通过提供HTTP服务返回runtime的统计数据,这个数据是以pprof可视化工具规定的返回格式返回的.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_mail.htm">mail</a></td>
<td> </td>
<td style="width: auto">mail 包实现了解析邮件消息的功能.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_rpc.htm">rpc</a></td>
<td> </td>
<td style="width: auto">rpc 包提供了一个方法来通过网络或者其他的I/O连接进入对象的外部方法.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_rpc_jsonrpc.htm">jsonrpc</a></td>
<td> </td>
<td style="width: auto">jsonrpc 包使用了rpc的包实现了一个JSON-RPC的客户端解码器和服务端的解码器.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_smtp.htm">smtp</a></td>
<td> </td>
<td style="width: auto">smtp包实现了简单邮件传输协议(SMTP),参见RFC 5321.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_textproto.htm">textproto</a></td>
<td> </td>
<td style="width: auto">textproto实现了对基于文本的请求/回复协议的一般性支持,包括HTTP、NNTP和SMTP.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/net_url.htm">url</a></td>
<td> </td>
<td style="width: auto">url包解析URL并实现了查询的逸码,参见RFC 3986.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/os.htm">os</a></td>
<td> </td>
<td style="width: auto">os包提供了操作系统函数的不依赖平台的接口.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/os_exec.htm">exec</a></td>
<td> </td>
<td style="width: auto">exec包执行外部命令.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/os_signal.htm">signal</a></td>
<td> </td>
<td style="width: auto">signal包实现了对输入信号的访问.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/os_user.htm">user</a></td>
<td> </td>
<td style="width: auto">user包允许通过名称或ID查询用户帐户.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/path.htm">path</a></td>
<td> </td>
<td style="width: auto">path实现了对斜杠分隔的路径的实用操作函数.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/path_filepath.htm">filepath</a></td>
<td> </td>
<td style="width: auto">filepath包实现了兼容各操作系统的文件路径的实用操作函数.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/plugin.htm">plugin</a></td>
<td> </td>
<td style="width: auto">Package plugin implements loading and symbol resolution of Go plugins.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/reflect.htm">reflect</a></td>
<td> </td>
<td style="width: auto">reflect包实现了运行时反射,允许程序操作任意类型的对象.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/regexp.htm">regexp</a></td>
<td> </td>
<td style="width: auto">regexp包实现了正则表达式搜索.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/regexp_syntax.htm">syntax</a></td>
<td> </td>
<td style="width: auto">Package syntax parses regular expressions into parse trees and compiles parse trees into programs.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/runtime.htm">runtime</a></td>
<td> </td>
<td style="width: auto">TODO(osc): 需更新 runtime 包含与Go的运行时系统进行交互的操作,例如用于控制Go程的函数.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/runtime_cgo.htm">cgo</a></td>
<td> </td>
<td style="width: auto">cgo 包含有 cgo 工具生成的代码的运行时支持.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/runtime_debug.htm">debug</a></td>
<td> </td>
<td style="width: auto">debug 包含有程序在运行时调试其自身的功能.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/runtime_pprof.htm">pprof</a></td>
<td> </td>
<td style="width: auto">pprof 包按照可视化工具 pprof 所要求的格式写出运行时分析数据.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/runtime_race.htm">race</a></td>
<td> </td>
<td style="width: auto">race 包实现了数据竞争检测逻辑.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/runtime_trace.htm">trace</a></td>
<td> </td>
<td style="width: auto">Go execution tracer.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/sort.htm">sort</a></td>
<td> </td>
<td style="width: auto">sort 包为切片及用户定义的集合的排序操作提供了原语.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/strconv.htm">strconv</a></td>
<td> </td>
<td style="width: auto">strconv包实现了基本数据类型和其字符串表示的相互转换.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/strings.htm">strings</a></td>
<td> </td>
<td style="width: auto">strings包实现了用于操作字符的简单函数.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/sync.htm">sync</a></td>
<td> </td>
<td style="width: auto">sync 包提供了互斥锁这类的基本的同步原语.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/sync_atomic.htm">atomic</a></td>
<td> </td>
<td style="width: auto">atomic 包提供了底层的原子性内存原语,这对于同步算法的实现很有用.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/syscall.htm">syscall</a></td>
<td> </td>
<td style="width: auto">Package syscall contains an interface to the low-level operating system primitives.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/testing.htm">testing</a></td>
<td> </td>
<td style="width: auto">Package testing provides support for automated testing of Go packages.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/testing_iotest.htm">iotest</a></td>
<td> </td>
<td style="width: auto">Package iotest implements Readers and Writers useful mainly for testing.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/testing_quick.htm">quick</a></td>
<td> </td>
<td style="width: auto">Package quick implements utility functions to help with black box testing.</td>
</tr>
<tr>
<td class="name"><a id="text" href="#text">text</a></td>
<td> </td>
<td style="width: auto"></td>
</tr>
<tr>
<td class="name"> <a href="./pkg/text_scanner.htm">scanner</a></td>
<td> </td>
<td style="width: auto">scanner包提供对utf-8文本的token扫描服务.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/text_tabwriter.htm">tabwriter</a></td>
<td> </td>
<td style="width: auto">tabwriter包实现了写入过滤器(tabwriter.Writer),可以将输入的缩进修正为正确的对齐文本.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/text_template.htm">template</a></td>
<td> </td>
<td style="width: auto">template包实现了数据驱动的用于生成文本输出的模板.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/text_template_parse.htm">parse</a></td>
<td> </td>
<td style="width: auto">Package parse builds parse trees for templates as defined by text/template and html/template.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/time.htm">time</a></td>
<td> </td>
<td style="width: auto">time包提供了时间的显示和测量用的函数.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/unicode.htm">unicode</a></td>
<td> </td>
<td style="width: auto">unicode 包提供了一些测试Unicode码点属性的数据和函数.</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/unicode_utf16.htm">utf16</a></td>
<td> </td>
<td style="width: auto">utf16 包实现了对UTF-16序列的编码和解码。</td>
</tr>
<tr>
<td class="name"> <a href="./pkg/unicode_utf8.htm">utf8</a></td>
<td> </td>
<td style="width: auto">utf8 包实现了支持UTF-8文本编码的函数和常量.</td>
</tr>
<tr>
<td class="name"><a href="./pkg/unsafe.htm">unsafe</a></td>
<td> </td>
<td style="width: auto">unsafe 包含有关于Go程序类型安全的所有操作.</td>
</tr>
</tbody>
</table>
<h2 id="other">其它包</h2>
<h3 id="subrepo">子代码库</h3>
<p>这些包是 Go 项目的一部分,但并未在主源码树中。它们在比 Go
核心库更加宽松的<a href="/doc/go1compat">兼容性需求</a>下开发。
可通过“<a href="/cmd/go/#hdr-Download_and_install_packages_and_dependencies">go get</a>”安装它们,子代码库的<a href="http://godoc.org/-/subrepo">文档</a>和<a href="https://github.com/golang">源码</a>可通过相应的链接访问</p>
<ul>
<li><a href="https://github.com/golang/crypto">crypto</a> — 附加的加密包。</li>
<li><a href="https://github.com/golang/image">image</a> — 附加的图像包。</li>
<li><a href="https://github.com/golang/net">net</a> — 附加的网络包。</li>
<li><a href="https://github.com/golang/sys">sys</a> — 系统调用包。</li>
<li><a href="https://github.com/golang/text">text</a> — 文本处理包。</li>
<li><a href="https://github.com/golang/tools">tools</a> — godoc、vet、cover 及其它工具。</li>
<li><a href="https://github.com/golang/exp">exp</a> — 实验性代码(可能不经警告就更改,请小心对待)。</li>
</ul>
<h3 id="community">社区</h3>
<p> 这些服务可帮你寻找社区提供的开源包。 </p>
<ul>
<li><a href="http://godoc.org/">GoDoc</a> - 包索引与搜索引擎。</li>
<li><a href="http://go-search.org/">Go 搜索</a> - 代码搜索引擎。</li>
<li><a href="https://github.com/golang/go/wiki/Projects">Go 维基上的项目</a> - Go 项目策划列表</li>
</ul>
</div>
<!-- .container -->
</div>
<!-- #page -->
</body>
</html>