Buf represents a generic dictionary-like buffer.
| 22 | |
| 23 | // Buf represents a generic dictionary-like buffer. |
| 24 | type Buf interface { |
| 25 | // get cursor at key k |
| 26 | get(k string) (Cur, bool) |
| 27 | // overwrite all records |
| 28 | put(v any) |
| 29 | // set record at key k |
| 30 | set(k string, v any) |
| 31 | // dump contents |
| 32 | dump() BufD |
| 33 | } |
| 34 | |
| 35 | func loadBuf(ns *Namespace, b BufD) Buf { |
| 36 | if b.C != nil { |
no outgoing calls
no test coverage detected