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

Method PushString

stack.go:87–89  ·  view source on GitHub ↗

PushString is a helper function for Push that accepts a value as a string rather than a byte slice.

(value string)

Source from the content-addressed store, hash-verified

85// PushString is a helper function for Push that accepts a
86// value as a string rather than a byte slice.
87func (s *Stack) PushString(value string) (*Item, error) {
88 return s.Push([]byte(value))
89}
90
91// PushObject is a helper function for Push that accepts any
92// value type, which is then encoded into a byte slice using

Callers 13

TestStackCloseFunction · 0.80
TestStackPushFunction · 0.80
TestStackPopFunction · 0.80
TestStackPeekFunction · 0.80
TestStackPeekByOffsetFunction · 0.80
TestStackPeekByIDFunction · 0.80
TestStackUpdateFunction · 0.80
TestStackUpdateStringFunction · 0.80
TestStackEmptyFunction · 0.80
TestStackOutOfBoundsFunction · 0.80
BenchmarkStackPushFunction · 0.80

Calls 1

PushMethod · 0.95

Tested by 13

TestStackCloseFunction · 0.64
TestStackPushFunction · 0.64
TestStackPopFunction · 0.64
TestStackPeekFunction · 0.64
TestStackPeekByOffsetFunction · 0.64
TestStackPeekByIDFunction · 0.64
TestStackUpdateFunction · 0.64
TestStackUpdateStringFunction · 0.64
TestStackEmptyFunction · 0.64
TestStackOutOfBoundsFunction · 0.64
BenchmarkStackPushFunction · 0.64