Due to the complexity of each operation is at least O(n) So we can directly use slice to implement the list at the bottom level If the implementation of the db is improved later, we need to switch to a linked list
| 19 | // So we can directly use slice to implement the list at the bottom level |
| 20 | // If the implementation of the db is improved later, we need to switch to a linked list |
| 21 | type ListStructure struct { |
| 22 | db *engine.DB |
| 23 | } |
| 24 | |
| 25 | type listNode struct { |
| 26 | Value interface{} |
nothing calls this directly
no outgoing calls
no test coverage detected