31.笔记go语言——go doc命令

31.笔记go语言——go doc命令

                godoc命令

查看GO文档可以通过go doc程序来阅读。

例如

go doc hash

package hash // import "hash"

Package hash provides interfaces for hashfunctions.

type Hash interface { ... }

type Hash32 interface { ... }

type Hash64 interface { ... }

查看hash包中的fnv文档

go doc hash/fnv

package fnv // import "hash/fnv"

Package fnv implements FNV-1 and FNV-1a,non-cryptographic hash functions

created by Glenn Fowler, Landon Curt Noll,and Phong Vo. See

https://en.wikipedia.org/wiki/Fowler-Noll-Vo_hash_function.

func New32() hash.Hash32

func New32a() hash.Hash32

func New64() hash.Hash64

func New64a() hash.Hash64

 

 

 

 

 

 

 

 

你可能感兴趣的:(go,语言)