func (a *Array) Set(index int, value interface{}) {
	a.lock.Lock()
	a.array[index] = value
	a.lock.Unlock()
}
Set sets an item in the array at a particular index
package utils
import "sync"
type Array struct {
	lock  sync.RWMutex
	array []interface{}
}
func NewArray(length int) *Array {
	return &Array{array: make([]interface{}, length)}
}
func (a *Array) Append(value interface{}) {
	a.lock.Lock()
	a.array = append(a.array, value)
	a.lock.Unlock()
}