(key string)
| 26 | } |
| 27 | |
| 28 | func (table *HashTable) Get(key string) (int, bool) { |
| 29 | position := generateHash(key) |
| 30 | current := table.data[position] |
| 31 | for current != nil { |
| 32 | if current.key == key { |
| 33 | return current.data, true |
| 34 | } |
| 35 | current = current.next |
| 36 | } |
| 37 | return 0, false |
| 38 | } |
| 39 | |
| 40 | func (table *HashTable) Set(key string, value int) bool { |
| 41 | position := generateHash(key) |
nothing calls this directly
no test coverage detected