MCPcopy
hub / github.com/hu17889/go_spider / AddItem

Method AddItem

core/common/page_items/page_items.go:34–36  ·  view source on GitHub ↗

AddItem saves a KV result into PageItems.

(key string, item string)

Source from the content-addressed store, hash-verified

32
33// AddItem saves a KV result into PageItems.
34func (this *PageItems) AddItem(key string, item string) {
35 this.items[key] = item
36}
37
38// GetItem returns value of the key.
39func (this *PageItems) GetItem(key string) (string, bool) {

Callers 1

AddFieldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected