Skip to content

Commit

Permalink
基于1.8完成所有包添加
Browse files Browse the repository at this point in the history
  • Loading branch information
zhima1234 committed Apr 4, 2017
1 parent 992435b commit a7c3cec
Show file tree
Hide file tree
Showing 168 changed files with 25,673 additions and 1,064 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
go语言标准库中文文档
对官方文档http://godoc.org/ 的开源翻译项目
添加全文搜索功能,框架导航布局,源码链接到github
golang标准库手册 简短域名 http://godoc.ml/
# pkgdoc

go 标准库和部分第三方包的包文档中文翻译。

参照 http://godoc.org/ 样式。

在项目 http://git.oschina.net/myml/pkgdoc/ 的基础上,增加最新版本的包

# 在线预览

- [Go语言中文网标准库中文版](http://studygolang.com/pkgdoc)
- [http://godoc.ml/](http://godoc.ml/)

# JOIN US

欢迎 pull request.
32 changes: 32 additions & 0 deletions i.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<a href="main.html" target="main">首页</a><br/>
<a href="main.html" target="_top">不显示目录</a><br/>
目录<br>
<a href="pkg/archive_tar.htm" target ="main">archive/tar</a><br/>
<a href="pkg/archive_zip.htm" target ="main">archive/zip</a><br/>
<a href="pkg/bufio.htm" target ="main">bufio</a><br/>
<a href="pkg/builtin.htm" target ="main">builtin</a><br/>
Expand All @@ -29,6 +30,7 @@
<a href="pkg/container_heap.htm" target ="main">container/heap</a><br/>
<a href="pkg/container_list.htm" target ="main">container/list</a><br/>
<a href="pkg/container_ring.htm" target ="main">container/ring</a><br/>
<a href="pkg/context.htm" target ="main">context</a><br/>
<a href="pkg/crypto.htm" target ="main">crypto</a><br/>
<a href="pkg/crypto_aes.htm" target ="main">crypto/aes</a><br/>
<a href="pkg/crypto_cipher.htm" target ="main">crypto/cipher</a><br/>
Expand All @@ -50,6 +52,12 @@
<a href="pkg/crypto_x509_pkix.htm" target ="main">crypto/x509/pkix</a><br/>
<a href="pkg/database_sql.htm" target ="main">database/sql</a><br/>
<a href="pkg/database_sql_driver.htm" target ="main">database/sql/driver</a><br/>
<a href="pkg/debug_dwarf.htm" target ="main">debug/dwarf</a><br/>
<a href="pkg/debug_elf.htm" target ="main">debug/elf</a><br/>
<a href="pkg/debug_gosym.htm" target ="main">debug/gosym</a><br/>
<a href="pkg/debug_macho.htm" target ="main">debug/macho</a><br/>
<a href="pkg/debug_pe.htm" target ="main">debug/pe</a><br/>
<a href="pkg/debug_plan9obj.htm" target ="main">debug/plan9obj</a><br/>
<a href="pkg/encoding.htm" target ="main">encoding</a><br/>
<a href="pkg/encoding_ascii85.htm" target ="main">encoding/ascii85</a><br/>
<a href="pkg/encoding_asn1.htm" target ="main">encoding/asn1</a><br/>
Expand All @@ -66,6 +74,17 @@
<a href="pkg/expvar.htm" target ="main">expvar</a><br/>
<a href="pkg/flag.htm" target ="main">flag</a><br/>
<a href="pkg/fmt.htm" target ="main">fmt</a><br/>
<a href="pkg/go_ast.htm" target ="main">go/ast</a><br/>
<a href="pkg/go_build.htm" target ="main">go/build</a><br/>
<a href="pkg/go_constant.htm" target ="main">go/constant</a><br/>
<a href="pkg/go_doc.htm" target ="main">go/doc</a><br/>
<a href="pkg/go_format.htm" target ="main">go/format</a><br/>
<a href="pkg/go_importer.htm" target ="main">go/importer</a><br/>
<a href="pkg/go_parser.htm" target ="main">go/parser</a><br/>
<a href="pkg/go_printer.htm" target ="main">go/printer</a><br/>
<a href="pkg/go_scanner.htm" target ="main">go/scanner</a><br/>
<a href="pkg/go_token.htm" target ="main">go/token</a><br/>
<a href="pkg/go_types.htm" target ="main">go/types</a><br/>
<a href="pkg/hash.htm" target ="main">hash</a><br/>
<a href="pkg/hash_adler32.htm" target ="main">hash/adler32</a><br/>
<a href="pkg/hash_crc32.htm" target ="main">hash/crc32</a><br/>
Expand All @@ -84,18 +103,21 @@
<a href="pkg/io.htm" target ="main">io</a><br/>
<a href="pkg/io_ioutil.htm" target ="main">io/ioutil</a><br/>
<a href="pkg/log.htm" target ="main">log</a><br/>
<a href="pkg/log_syslog.htm" target ="main">log/syslog</a><br/>
<a href="pkg/math.htm" target ="main">math</a><br/>
<a href="pkg/math_big.htm" target ="main">math/big</a><br/>
<a href="pkg/math_cmplx.htm" target ="main">math/cmplx</a><br/>
<a href="pkg/math_rand.htm" target ="main">math/rand</a><br/>
<a href="pkg/mime.htm" target ="main">mime</a><br/>
<a href="pkg/mime_multipart.htm" target ="main">mime/multipart</a><br/>
<a href="pkg/mime_quotedprintable.htm" target ="main">mime/quotedprintable</a><br/>
<a href="pkg/net.htm" target ="main">net</a><br/>
<a href="pkg/net_http.htm" target ="main">net/http</a><br/>
<a href="pkg/net_http_cgi.htm" target ="main">net/http/cgi</a><br/>
<a href="pkg/net_http_cookiejar.htm" target ="main">net/http/cookiejar</a><br/>
<a href="pkg/net_http_fcgi.htm" target ="main">net/http/fcgi</a><br/>
<a href="pkg/net_http_httptest.htm" target ="main">net/http/httptest</a><br/>
<a href="pkg/net_http_httptrace.htm" target ="main">net/http/httptrace</a><br/>
<a href="pkg/net_http_httputil.htm" target ="main">net/http/httputil</a><br/>
<a href="pkg/net_http_pprof.htm" target ="main">net/http/pprof</a><br/>
<a href="pkg/net_mail.htm" target ="main">net/mail</a><br/>
Expand All @@ -110,19 +132,29 @@
<a href="pkg/os_user.htm" target ="main">os/user</a><br/>
<a href="pkg/path.htm" target ="main">path</a><br/>
<a href="pkg/path_filepath.htm" target ="main">path/filepath</a><br/>
<a href="pkg/plugin.htm" target ="main">plugin</a><br/>
<a href="pkg/reflect.htm" target ="main">reflect</a><br/>
<a href="pkg/regexp.htm" target ="main">regexp</a><br/>
<a href="pkg/regexp_syntax.htm" target ="main">regexp/syntax</a><br/>
<a href="pkg/runtime.htm" target ="main">runtime</a><br/>
<a href="pkg/runtime_cgo.htm" target ="main">runtime/cgo</a><br/>
<a href="pkg/runtime_debug.htm" target ="main">runtime/debug</a><br/>
<a href="pkg/runtime_pprof.htm" target ="main">runtime/pprof</a><br/>
<a href="pkg/runtime_race.htm" target ="main">runtime/race</a><br/>
<a href="pkg/runtime_trace.htm" target ="main">runtime/trace</a><br/>
<a href="pkg/sort.htm" target ="main">sort</a><br/>
<a href="pkg/strconv.htm" target ="main">strconv</a><br/>
<a href="pkg/strings.htm" target ="main">strings</a><br/>
<a href="pkg/sync.htm" target ="main">sync</a><br/>
<a href="pkg/sync_atomic.htm" target ="main">sync/atomic</a><br/>
<a href="pkg/syscall.htm" target ="main">syscall</a><br/>
<a href="pkg/testing.htm" target ="main">testing</a><br/>
<a href="pkg/testing_iotest.htm" target ="main">testing/iotest</a><br/>
<a href="pkg/testing_quick.htm" target ="main">testing/quick</a><br/>
<a href="pkg/text_scanner.htm" target ="main">text/scanner</a><br/>
<a href="pkg/text_tabwriter.htm" target ="main">text/tabwriter</a><br/>
<a href="pkg/text_template.htm" target ="main">text/template</a><br/>
<a href="pkg/text_template_parse.htm" target ="main">text/template/parse</a><br/>
<a href="pkg/time.htm" target ="main">time</a><br/>
<a href="pkg/unicode.htm" target ="main">unicode</a><br/>
<a href="pkg/unicode_utf16.htm" target ="main">unicode/utf16</a><br/>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<title>golang标准库中文文档1.3.3</title>
<title>golang标准库中文文档 | Go语言中文网</title>
</head>
<frameset cols="15,85">
<frame src="i.html">
Expand Down
12 changes: 11 additions & 1 deletion pkg/appengine/appengine.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine</title>
</head>
<body>
Expand Down Expand Up @@ -160,5 +160,15 @@ <h3 id="BlobKey">type <a title="View Source" href="http://code.google.com/p/appe
<pre>type BlobKey <a href="https://godoc.org/builtin#string">string</a></pre>
<p>BlobKey是blobstore的键的类型。定义在这里是为了避免blobstore和datastore的循环依赖。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
12 changes: 11 additions & 1 deletion pkg/appengine/appengine_blobstore.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine/blobstore</title>
</head>
<body>
Expand Down Expand Up @@ -108,5 +108,15 @@ <h3 id="Send">func <a title="View Source" href="http://code.google.com/p/appengi
<pre class="funcdecl">func Send(response <a href="https://godoc.org/net/http">http</a>.<a href="https://godoc.org/net/http#ResponseWriter">ResponseWriter</a>, blobKey <a href="https://godoc.org/appengine">appengine</a>.<a href="https://godoc.org/appengine#BlobKey">BlobKey</a>)</pre>
<p>函数设置response的header并将blobKey对应的大对象的内容作为response的body。本函数比手工读取大对象和写入response要更有效率,也没有一般response大小的限制。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
12 changes: 11 additions & 1 deletion pkg/appengine/appengine_datastore.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine/datastore</title>
</head>
<body>
Expand Down Expand Up @@ -528,5 +528,15 @@ <h3 id="RunInTransaction">func <a title="View Source" href="http://code.google.c
<p align="left">注意当f返回时,事务还没有递交。调用代码必须注意不能假设f的任何操作已经被递交,除非函数返回了nil。 </p>
<p align="left">不支持嵌套事务,c只能是从user或appengine包获取的Context,不能是事务上下文。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
12 changes: 11 additions & 1 deletion pkg/appengine/appengine_memcache.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine/memcache</title>
</head>
<body>
Expand Down Expand Up @@ -178,5 +178,15 @@ <h4 id="Codec.CompareAndSwapMulti">func (Codec) <a title="View Source" href="htt
<pre class="funcdecl">func (cd <a href="#Codec">Codec</a>) CompareAndSwapMulti(c <a href="https://godoc.org/appengine">appengine</a>.<a href="https://godoc.org/appengine#Context">Context</a>, items []*<a href="#Item">Item</a>) <a href="https://godoc.org/builtin#error">error</a></pre>
<p>CompareAndSwap的批处理版本,可能返回appengine.MultiError类型的错误。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
12 changes: 11 additions & 1 deletion pkg/appengine/appengine_urlfetch.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine/urlfetch</title>
</head>
<body>
Expand Down Expand Up @@ -40,5 +40,15 @@ <h4 id="Transport.RoundTrip">func (*Transport) <a title="View Source" href="http
<pre class="funcdecl">func (t *<a href="#Transport">Transport</a>) RoundTrip(req *<a href="https://godoc.org/net/http">http</a>.<a href="https://godoc.org/net/http#Request">Request</a>) (res *<a href="https://godoc.org/net/http">http</a>.<a href="https://godoc.org/net/http#Response">Response</a>, err <a href="https://godoc.org/builtin#error">error</a>)</pre>
<p>RoundTrip发出request并返回该请求的response。如果request不支持或者抓取失败都会返回错误。注意HTTP返回码为5xx、403、404等并非错误,错误码仍会设为nil。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
12 changes: 11 additions & 1 deletion pkg/appengine/appengine_user.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../site.css" rel="stylesheet">
<link href=".../assets/site.css" rel="stylesheet">
<title>appengine/user</title>
</head>
<body>
Expand Down Expand Up @@ -61,5 +61,15 @@ <h4 id="User.String">func (*User) <a title="View Source" href="http://code.googl
<pre class="funcdecl">func (u *<a href="#User">User</a>) String() <a href="https://godoc.org/builtin#string">string</a></pre>
<p>返回当前用户的可显示的名字。</p>
</div>
<div id="x-footer" class="clearfix">
<div class="container">
<a href="http://studygolang.com/">Go语言中文网</a>
<span class="text-muted">|</span> <a href="http://golang.org/">Go Language</a>
<span class="pull-right"><a href="#">Back to top</a></span>
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/archive_tar.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>archive/tar</title>
</head>
<body>
Expand Down Expand Up @@ -208,7 +208,7 @@ <h4 id="Writer.Close">func (*Writer) <a title="View Source" href="https://github
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/archive_zip.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>archive/zip</title>
</head>
<body>
Expand Down Expand Up @@ -252,7 +252,7 @@ <h4 id="Writer.Close">func (*Writer) <a title="View Source" href="https://github
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/bufio.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>bufio</title>
</head>
<body>
Expand Down Expand Up @@ -335,7 +335,7 @@ <h4 id="Scanner.Err">func (*Scanner) <a title="View Source" href="https://github
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/builtin.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>builtin</title>
</head>
<body>
Expand Down Expand Up @@ -223,7 +223,7 @@ <h3 id="println">func <a title="View Source" href="https://github.com/golang/go/
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/bytes.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>bytes</title>
</head>
<body>
Expand Down Expand Up @@ -474,7 +474,7 @@ <h4 id="Buffer.WriteTo">func (*Buffer) <a title="View Source" href="https://gith
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions pkg/compress_bzip2.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head profile="http://a9.com/-/spec/opensearch/1.1/">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./site.css" rel="stylesheet">
<link href="../assets/site.css" rel="stylesheet">
<title>compress/bzip2</title>
</head>
<body>
Expand Down Expand Up @@ -38,7 +38,7 @@ <h3 id="NewReader">func <a title="View Source" href="https://github.com/golang/g
</div>
</div>
<script src="../assets/jquery-2.0.3.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script src="../site.js"></script>
<script src="../assets/bootstrap.min.js"></script>
<script src="../assets/site.js"></script>
</body>
</html>
Loading

0 comments on commit a7c3cec

Please sign in to comment.