MCPcopy
hub / github.com/pquerna/ffjson / DeleteLast

Method DeleteLast

inception/writerstack.go:16–21  ·  view source on GitHub ↗

DeleteLast will delete the last added write

()

Source from the content-addressed store, hash-verified

14
15// DeleteLast will delete the last added write
16func (w *ConditionalWrite) DeleteLast() {
17 if len(w.Queued) == 0 {
18 return
19 }
20 w.Queued = w.Queued[:len(w.Queued)-1]
21}
22
23// Last will return the last added write
24func (w *ConditionalWrite) Last() string {

Callers 3

getMapValueFunction · 0.80
getGetInnerValueFunction · 0.80
CreateMarshalJSONFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected