MCPcopy Create free account
hub / github.com/pquerna/ffjson / Last

Method Last

inception/writerstack.go:24–29  ·  view source on GitHub ↗

Last will return the last added write

()

Source from the content-addressed store, hash-verified

22
23// Last will return the last added write
24func (w *ConditionalWrite) Last() string {
25 if len(w.Queued) == 0 {
26 return ""
27 }
28 return w.Queued[len(w.Queued)-1]
29}
30
31// Flush will return all queued writes, and return
32// "" (empty string) in nothing has been queued

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected