diff --git a/README.md b/README.md index 06b0b2a..79939cd 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/i.html b/i.html index 6502815..de25f5f 100644 --- a/i.html +++ b/i.html @@ -17,6 +17,7 @@ 首页
不显示目录
目录
+archive/tar
archive/zip
bufio
builtin
@@ -29,6 +30,7 @@ container/heap
container/list
container/ring
+context
crypto
crypto/aes
crypto/cipher
@@ -50,6 +52,12 @@ crypto/x509/pkix
database/sql
database/sql/driver
+debug/dwarf
+debug/elf
+debug/gosym
+debug/macho
+debug/pe
+debug/plan9obj
encoding
encoding/ascii85
encoding/asn1
@@ -66,6 +74,17 @@ expvar
flag
fmt
+go/ast
+go/build
+go/constant
+go/doc
+go/format
+go/importer
+go/parser
+go/printer
+go/scanner
+go/token
+go/types
hash
hash/adler32
hash/crc32
@@ -84,18 +103,21 @@ io
io/ioutil
log
+log/syslog
math
math/big
math/cmplx
math/rand
mime
mime/multipart
+mime/quotedprintable
net
net/http
net/http/cgi
net/http/cookiejar
net/http/fcgi
net/http/httptest
+net/http/httptrace
net/http/httputil
net/http/pprof
net/mail
@@ -110,19 +132,29 @@ os/user
path
path/filepath
+plugin
reflect
regexp
+regexp/syntax
runtime
+runtime/cgo
runtime/debug
runtime/pprof
+runtime/race
+runtime/trace
sort
strconv
strings
sync
sync/atomic
+syscall
+testing
+testing/iotest
+testing/quick
text/scanner
text/tabwriter
text/template
+text/template/parse
time
unicode
unicode/utf16
diff --git a/index.html b/index.html index de7adbd..7c061d2 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,6 @@ -golang标准库中文文档1.3.3 +golang标准库中文文档 | Go语言中文网 diff --git a/pkg/appengine/appengine.htm b/pkg/appengine/appengine.htm index 342335b..b3695fa 100644 --- a/pkg/appengine/appengine.htm +++ b/pkg/appengine/appengine.htm @@ -3,7 +3,7 @@ - + appengine @@ -160,5 +160,15 @@

type string

BlobKey是blobstore的键的类型。定义在这里是为了避免blobstore和datastore的循环依赖。

+ + + + diff --git a/pkg/appengine/appengine_blobstore.htm b/pkg/appengine/appengine_blobstore.htm index c166ecc..b8894bf 100644 --- a/pkg/appengine/appengine_blobstore.htm +++ b/pkg/appengine/appengine_blobstore.htm @@ -3,7 +3,7 @@ - + appengine/blobstore @@ -108,5 +108,15 @@

func func Send(response http.ResponseWriter, blobKey appengine.BlobKey)

函数设置response的header并将blobKey对应的大对象的内容作为response的body。本函数比手工读取大对象和写入response要更有效率,也没有一般response大小的限制。

+ + + + diff --git a/pkg/appengine/appengine_datastore.htm b/pkg/appengine/appengine_datastore.htm index 2b369b4..ae52421 100644 --- a/pkg/appengine/appengine_datastore.htm +++ b/pkg/appengine/appengine_datastore.htm @@ -3,7 +3,7 @@ - + appengine/datastore @@ -528,5 +528,15 @@

func 注意当f返回时,事务还没有递交。调用代码必须注意不能假设f的任何操作已经被递交,除非函数返回了nil。

不支持嵌套事务,c只能是从user或appengine包获取的Context,不能是事务上下文。

+
+ + + diff --git a/pkg/appengine/appengine_memcache.htm b/pkg/appengine/appengine_memcache.htm index 2a55e31..85aa639 100644 --- a/pkg/appengine/appengine_memcache.htm +++ b/pkg/appengine/appengine_memcache.htm @@ -3,7 +3,7 @@ - + appengine/memcache @@ -178,5 +178,15 @@

func (Codec) func (cd Codec) CompareAndSwapMulti(c appengine.Context, items []*Item) error

CompareAndSwap的批处理版本,可能返回appengine.MultiError类型的错误。

+ + + + diff --git a/pkg/appengine/appengine_urlfetch.htm b/pkg/appengine/appengine_urlfetch.htm index 2dfc1bc..71c288b 100644 --- a/pkg/appengine/appengine_urlfetch.htm +++ b/pkg/appengine/appengine_urlfetch.htm @@ -3,7 +3,7 @@ - + appengine/urlfetch @@ -40,5 +40,15 @@

func (*Transport) func (t *Transport) RoundTrip(req *http.Request) (res *http.Response, err error)

RoundTrip发出request并返回该请求的response。如果request不支持或者抓取失败都会返回错误。注意HTTP返回码为5xx、403、404等并非错误,错误码仍会设为nil。

+ + + + diff --git a/pkg/appengine/appengine_user.htm b/pkg/appengine/appengine_user.htm index 5ba7369..9a3ac22 100644 --- a/pkg/appengine/appengine_user.htm +++ b/pkg/appengine/appengine_user.htm @@ -3,7 +3,7 @@ - + appengine/user @@ -61,5 +61,15 @@

func (*User) func (u *User) String() string

返回当前用户的可显示的名字。

+ + + + diff --git a/pkg/archive_tar.htm b/pkg/archive_tar.htm index 2a9fc20..4f4f9f8 100644 --- a/pkg/archive_tar.htm +++ b/pkg/archive_tar.htm @@ -3,7 +3,7 @@ - + archive/tar @@ -208,7 +208,7 @@

func (*Writer) - - + + diff --git a/pkg/archive_zip.htm b/pkg/archive_zip.htm index e7cd6a9..502d010 100644 --- a/pkg/archive_zip.htm +++ b/pkg/archive_zip.htm @@ -3,7 +3,7 @@ - + archive/zip @@ -252,7 +252,7 @@

func (*Writer) - - + + diff --git a/pkg/bufio.htm b/pkg/bufio.htm index 1d4df59..ee9b8f3 100644 --- a/pkg/bufio.htm +++ b/pkg/bufio.htm @@ -3,7 +3,7 @@ - + bufio @@ -335,7 +335,7 @@

func (*Scanner) - - + + diff --git a/pkg/builtin.htm b/pkg/builtin.htm index b2d1c5d..1aafaca 100644 --- a/pkg/builtin.htm +++ b/pkg/builtin.htm @@ -3,7 +3,7 @@ - + builtin @@ -223,7 +223,7 @@

func - - + + diff --git a/pkg/bytes.htm b/pkg/bytes.htm index 88c8388..ce069ac 100644 --- a/pkg/bytes.htm +++ b/pkg/bytes.htm @@ -3,7 +3,7 @@ - + bytes @@ -474,7 +474,7 @@

func (*Buffer) - - + + diff --git a/pkg/compress_bzip2.htm b/pkg/compress_bzip2.htm index f4b2171..1b132a2 100644 --- a/pkg/compress_bzip2.htm +++ b/pkg/compress_bzip2.htm @@ -3,7 +3,7 @@ - + compress/bzip2 @@ -38,7 +38,7 @@

func - - + + diff --git a/pkg/compress_flate.htm b/pkg/compress_flate.htm index a8d6abd..df0de64 100644 --- a/pkg/compress_flate.htm +++ b/pkg/compress_flate.htm @@ -3,7 +3,7 @@ - + compress/flate @@ -128,7 +128,7 @@

func (*Writer) - - + + diff --git a/pkg/compress_gzip.htm b/pkg/compress_gzip.htm index a258e82..1c2f4db 100644 --- a/pkg/compress_gzip.htm +++ b/pkg/compress_gzip.htm @@ -3,7 +3,7 @@ - + compress/gzip @@ -114,7 +114,7 @@

func (*Writer) - - + + diff --git a/pkg/compress_lzw.htm b/pkg/compress_lzw.htm index 2dadf36..032dd26 100644 --- a/pkg/compress_lzw.htm +++ b/pkg/compress_lzw.htm @@ -3,7 +3,7 @@ - + compress/lzw @@ -44,7 +44,7 @@

func - - + + diff --git a/pkg/compress_zlib.htm b/pkg/compress_zlib.htm index c67eac2..7822011 100644 --- a/pkg/compress_zlib.htm +++ b/pkg/compress_zlib.htm @@ -3,7 +3,7 @@ - + compress/zlib @@ -144,7 +144,7 @@

func (*Writer) - - + + diff --git a/pkg/container_heap.htm b/pkg/container_heap.htm index ba8ba47..c249b78 100644 --- a/pkg/container_heap.htm +++ b/pkg/container_heap.htm @@ -3,7 +3,7 @@ - + container/heap @@ -200,7 +200,7 @@

func - - + + diff --git a/pkg/container_list.htm b/pkg/container_list.htm index b9a7a40..5b07012 100644 --- a/pkg/container_list.htm +++ b/pkg/container_list.htm @@ -3,7 +3,7 @@ - + container/list @@ -148,7 +148,7 @@

func (*List) - - + + diff --git a/pkg/container_ring.htm b/pkg/container_ring.htm index b843e74..9181e5b 100644 --- a/pkg/container_ring.htm +++ b/pkg/container_ring.htm @@ -67,8 +67,8 @@

func (*Ring) Back to top - - - + + + diff --git a/pkg/crypto.htm b/pkg/crypto.htm index adab5ad..ba2250a 100644 --- a/pkg/crypto.htm +++ b/pkg/crypto.htm @@ -3,7 +3,7 @@ - + crypto @@ -66,7 +66,7 @@

func - - + + diff --git a/pkg/crypto_aes.htm b/pkg/crypto_aes.htm index 76cbdc8..17f6909 100644 --- a/pkg/crypto_aes.htm +++ b/pkg/crypto_aes.htm @@ -3,7 +3,7 @@ - + crypto/aes @@ -41,7 +41,7 @@

func - - + + diff --git a/pkg/crypto_cipher.htm b/pkg/crypto_cipher.htm index c48d8a1..e462c89 100644 --- a/pkg/crypto_cipher.htm +++ b/pkg/crypto_cipher.htm @@ -3,7 +3,7 @@ - + crypto/cipher @@ -430,7 +430,7 @@

func - - + + diff --git a/pkg/crypto_des.htm b/pkg/crypto_des.htm index 667d47f..262410d 100644 --- a/pkg/crypto_des.htm +++ b/pkg/crypto_des.htm @@ -3,7 +3,7 @@ - + crypto/des @@ -68,7 +68,7 @@

func - - + + diff --git a/pkg/crypto_dsa.htm b/pkg/crypto_dsa.htm index 3c5653a..db2f8b1 100644 --- a/pkg/crypto_dsa.htm +++ b/pkg/crypto_dsa.htm @@ -3,7 +3,7 @@ - + crypto/dsa @@ -77,7 +77,7 @@

func - - + + diff --git a/pkg/crypto_ecdsa.htm b/pkg/crypto_ecdsa.htm index b0b860a..79f2019 100644 --- a/pkg/crypto_ecdsa.htm +++ b/pkg/crypto_ecdsa.htm @@ -3,7 +3,7 @@ - + crypto/ecdsa @@ -54,7 +54,7 @@

func - - + + diff --git a/pkg/crypto_elliptic.htm b/pkg/crypto_elliptic.htm index 0042617..8ba8ca9 100644 --- a/pkg/crypto_elliptic.htm +++ b/pkg/crypto_elliptic.htm @@ -3,7 +3,7 @@ - + crypto/elliptic @@ -104,7 +104,7 @@

func - - + + diff --git a/pkg/crypto_hmac.htm b/pkg/crypto_hmac.htm index d01a76a..1512af9 100644 --- a/pkg/crypto_hmac.htm +++ b/pkg/crypto_hmac.htm @@ -3,7 +3,7 @@ - + crypto/hmac @@ -42,7 +42,7 @@

func - - + + diff --git a/pkg/crypto_md5.htm b/pkg/crypto_md5.htm index b1fe8d3..7ec09f1 100644 --- a/pkg/crypto_md5.htm +++ b/pkg/crypto_md5.htm @@ -3,7 +3,7 @@ - + crypto/md5 @@ -75,7 +75,7 @@

func - - + + diff --git a/pkg/crypto_rand.htm b/pkg/crypto_rand.htm index c2bd7ee..bd76579 100644 --- a/pkg/crypto_rand.htm +++ b/pkg/crypto_rand.htm @@ -3,7 +3,7 @@ - + crypto/rand @@ -67,7 +67,7 @@

func - - + + diff --git a/pkg/crypto_rc4.htm b/pkg/crypto_rc4.htm index 4a5541b..fe75b71 100644 --- a/pkg/crypto_rc4.htm +++ b/pkg/crypto_rc4.htm @@ -3,7 +3,7 @@ - + crypto/rc4 @@ -54,7 +54,7 @@

Bugs

- - + + diff --git a/pkg/crypto_rsa.htm b/pkg/crypto_rsa.htm index f3e5156..ee7ae84 100644 --- a/pkg/crypto_rsa.htm +++ b/pkg/crypto_rsa.htm @@ -3,7 +3,7 @@ - + crypto/rsa @@ -131,6 +131,7 @@

func func VerifyPSS(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte, opts *PSSOptions) error

VerifyPSS认证一个PSS签名。hashed是使用提供给本函数的hash参数对(要签名的)原始数据进行hash的结果。合法的签名会返回nil,否则表示签名不合法。opts参数可以为nil,此时会使用默认参数。

+ + + + + diff --git a/pkg/unicode_utf16.htm b/pkg/unicode_utf16.htm index ec1f57e..982c14f 100644 --- a/pkg/unicode_utf16.htm +++ b/pkg/unicode_utf16.htm @@ -3,7 +3,7 @@ - + unicode/utf16 @@ -36,5 +36,15 @@

func func Encode(s []rune) []uint16

将unicode码值序列编码为utf-16序列。

+ + + + diff --git a/pkg/unicode_utf8.htm b/pkg/unicode_utf8.htm index 75de8f4..9ffaa98 100644 --- a/pkg/unicode_utf8.htm +++ b/pkg/unicode_utf8.htm @@ -3,7 +3,7 @@ - + unicode/utf8 @@ -370,5 +370,15 @@

func + + + + + diff --git a/pkg/unsafe.htm b/pkg/unsafe.htm index 5236fb0..b5ca655 100644 --- a/pkg/unsafe.htm +++ b/pkg/unsafe.htm @@ -3,7 +3,7 @@ - + unsafe @@ -41,5 +41,15 @@

func func Offsetof(v ArbitraryType) uintptr

Offsetof返回类型v所代表的结构体字段在结构体中的偏移量,它必须为结构体类型的字段的形式。换句话说,它返回该结构起始处与该字段起始处之间的字节数。

+ + + +