Splice implementation in Go