MCPcopy Create free account
hub / github.com/beeker1121/goque / UpdateString

Method UpdateString

stack.go:222–224  ·  view source on GitHub ↗

UpdateString is a helper function for Update that accepts a value as a string rather than a byte slice.

(id uint64, newValue string)

Source from the content-addressed store, hash-verified

220// UpdateString is a helper function for Update that accepts a value
221// as a string rather than a byte slice.
222func (s *Stack) UpdateString(id uint64, newValue string) (*Item, error) {
223 return s.Update(id, []byte(newValue))
224}
225
226// UpdateObject is a helper function for Update that accepts any
227// value type, which is then encoded into a byte slice using

Callers 5

TestStackUpdateStringFunction · 0.45
TestPrefixQueueUpdateFunction · 0.45
TestQueueUpdateStringFunction · 0.45

Calls 1

UpdateMethod · 0.95

Tested by 5

TestStackUpdateStringFunction · 0.36
TestPrefixQueueUpdateFunction · 0.36
TestQueueUpdateStringFunction · 0.36