MCPcopy Index your code
hub / github.com/aizk/z

github.com/aizk/z @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
46 symbols 64 edges 19 files 27 documented · 59%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Z!

code fast and reuse!

import "github.com/aizk/z"

zconv

type trans tools.

  • Int64ToString
  • IntToString

zslice

wrap of slice。

  • Clone() 克隆一个 slice
  • 删除某个位置的元素
  • 查找某个元素的位置
  • 复制一份 slice
  • 泛型操作...
  • map、reduce...
  • filter...

Chunk(slice, num) slice

s := []int{1, 2, 3, 4, 5}
n := Chunk(s, 2) // [[1, 2], [3, 4], [5]]

zos

  • Exist(path string) 判断文件或目录是否存在
  • IsDir(path string) 判断是否是目录
  • OpenFile(path string, perm 0777) 打开文件
  • WorkDIR 返回工作目录

rand

  • String() 随机生成字符串
  • StringWithType() 可以选择生成的字符串中有哪些类型的字符

crypto

  • MD5() md5 加密函数

Core symbols most depended-on inside this repo

commonValid
called by 3
zregex/rule.go
Exist
called by 1
zos/os.go
MD5
called by 1
zcrypto/md5.go
Remove
called by 1
zslice/remove.go
RemoveStrings
called by 1
zslice/remove.go
RemoveInts
called by 1
zslice/remove.go
RemoveInt
called by 1
zslice/remove.go
Clone
called by 1
zslice/clone.go

Shape

Function 43
Struct 3

Languages

Go100%

Modules by API surface

zslice/slice.go14 symbols
zslice/remove.go7 symbols
zregex/rule.go4 symbols
zslice/clone.go3 symbols
zslice/clone_test.go2 symbols
zslice/chunk_test.go2 symbols
zrand/string.go2 symbols
zos/dir.go2 symbols
zcrypto/md5_test.go2 symbols
zconv/int.go2 symbols
zslice/slice_test.go1 symbols
zslice/equal.go1 symbols

For agents

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

⬇ download graph artifact