Golang Array Length Javascript Method For Separating