MCPcopy Create free account
hub / github.com/peterbourgon/diskv / WriteString

Method WriteString

diskv.go:160–162  ·  view source on GitHub ↗

WriteString writes a string key-value pair to disk

(key string, val string)

Source from the content-addressed store, hash-verified

158
159// WriteString writes a string key-value pair to disk
160func (d *Diskv) WriteString(key string, val string) error {
161 return d.Write(key, []byte(val))
162}
163
164func (d *Diskv) transform(key string) (pathKey *PathKey) {
165 pathKey = d.AdvancedTransform(key)

Callers 4

TestHybridStoreFunction · 0.80
md5sumFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

WriteMethod · 0.95

Tested by 1

TestHybridStoreFunction · 0.64