MCPcopy Index your code
hub / github.com/crawshaw/jsonfile

github.com/crawshaw/jsonfile @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
14 symbols 36 edges 2 files 5 documented · 36% 15 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

jsonfile:

Use jsonfile to persist a Go value to a JSON file.

type JSONFile
    func Load[Data any](path string) (*JSONFile[Data], error)
    func New[Data any](path string) (*JSONFile[Data], error)
    func (p *JSONFile[Data]) Read(fn func(data *Data))
    func (p *JSONFile[Data]) Write(fn func(*Data) error) error

There is a bit more thought put into the few lines of code in this repository than you might expect. If you want more details, see the blog post.

Core symbols most depended-on inside this repo

Read
called by 6
jsonfile.go
Write
called by 4
jsonfile.go
New
called by 0
jsonfile.go
Load
called by 0
jsonfile.go

Shape

Function 9
Struct 3
Method 2

Languages

Go100%

Modules by API surface

jsonfile_test.go9 symbols
jsonfile.go5 symbols

For agents

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

⬇ download graph artifact