Set sets an item in the array at a particular index
(index int, value interface{})
| 22 | |
| 23 | // Set sets an item in the array at a particular index |
| 24 | func (a *Array) Set(index int, value interface{}) { |
| 25 | a.lock.Lock() |
| 26 | a.array[index] = value |
| 27 | a.lock.Unlock() |
| 28 | } |
| 29 | |
| 30 | // GetAll gets the array |
| 31 | func (a *Array) GetAll() []interface{} { |