MCPcopy
hub / github.com/astaxie/gopkg

github.com/astaxie/gopkg @main sqlite

repository ↗ · DeepWiki ↗
70 symbols 126 edges 35 files 10 documented · 14%
README

项目发起的目的

由于目前golang的手册里面针对函数的例子太少了,很多时候不知道怎么使用,好多人都是看源代码才明白怎么用,这个给我们快速开发golang带来了障碍,所以我想发起这样一个项目,通过对pkg里面的针对每个函数写代码例子

格式要求

目录名表示包名,文件名是函数

例如strings目录表示strings这个包

strings目录下Contains.md表示strings.Contains这个函数的例子,代码例子参考我写的Contains.md

样例请看:strings

代码必须在本机或者http://play.golang.org测试通过并且格式化

如何参与

如果你想参与这个项目,那么首先fork这个项目,然后修改todo.md文件,把你需要翻译的目录包填写在这个上面,然后pull给我,这样我们大家相互之间就不会做同一件事情了,不会导致两个人做了同一个包,这里面的包我每个目录已经建好了,但是需要注意:

如果你填写了net包,那么不需要做下面的http这些子包的工作,这些也需要分包出去,每个人只做自己的包,不包括子包

欢迎你加群:386056972 和我们一起交流学习进步

贡献者

都在todo里面,谢谢这么多人的参与

Core symbols most depended-on inside this repo

handleError
called by 6
net/smtp/ExampleSmtpClient.go
handleError
called by 3
hash/hashtool.go
hashFile
called by 2
hash/hashtool.go
printAddrs
called by 2
net/mail/ExampleMessage.go
visit
called by 1
build.go
List_VCard
called by 1
encoding/gob/gob.go
Encoding_vcard
called by 1
encoding/gob/gob.go
Decoding_vcard
called by 1
encoding/gob/gob.go

Shape

Function 55
Struct 10
Method 5

Languages

Go100%

Modules by API surface

encoding/gob/gob.go8 symbols
net/smtp/ExampleSmtpClient.go7 symbols
encoding/base64/examples/NewEncoder_test.go4 symbols
encoding/base32/examples/NewEncoder_test.go4 symbols
hash/hashtool.go3 symbols
encoding/base64/examples/Decode_test.go3 symbols
encoding/base32/examples/Decode_test.go3 symbols
build.go3 symbols
net/smtp/ExampleSmtpSendMail.go2 symbols
net/mail/ExampleMessage.go2 symbols
fmt/Exfmt01.go2 symbols
expvar/testExpvar.go2 symbols

For agents

$ claude mcp add gopkg \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact