Golang Array Length Javascript Method Overriding And Overloading