MCPcopy Create free account
hub / github.com/bytebase/bytebase / NewMemFS

Function NewMemFS

backend/api/lsp/fs.go:19–23  ·  view source on GitHub ↗

NewMemFS returns a new in-memory file system.

()

Source from the content-addressed store, hash-verified

17
18// NewMemFS returns a new in-memory file system.
19func NewMemFS() *MemFS {
20 return &MemFS{
21 m: make(map[string][]byte),
22 }
23}
24
25// DidOpen notifies the file system that a file was opened.
26func (fs *MemFS) DidOpen(params *lsp.DidOpenTextDocumentParams) {

Callers 1

resetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected