Golang Get Last Element Of Array Js Functions In Array