MCPcopy
hub / github.com/esm-dev/esm.sh / Set

Method Set

internal/importmap/importmap.go:68–72  ·  view source on GitHub ↗

Set sets the value of the key in the imports map.

(specifier string, url string)

Source from the content-addressed store, hash-verified

66
67// Set sets the value of the key in the imports map.
68func (i *Imports) Set(specifier string, url string) {
69 i.lock.Lock()
70 defer i.lock.Unlock()
71 i.imports[specifier] = url
72}
73
74// Delete deletes the value of the key in the imports map.
75func (i *Imports) Delete(specifier string) {

Callers 15

tidyFunction · 0.80
test.tsFile · 0.80
FetchWithContextMethod · 0.80
ListMethod · 0.80
signMethod · 0.80
addImportMethod · 0.80
setCorsHeadersFunction · 0.80
appendVaryHeaderFunction · 0.80
TestPrCommitFromHeaderFunction · 0.80
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestPrCommitFromHeaderFunction · 0.64