Skip to content

Instantly share code, notes, and snippets.

@u1and0
Last active June 20, 2019 00:35
Show Gist options
  • Select an option

  • Save u1and0/fe975845f1c92dca30618e78d062bba0 to your computer and use it in GitHub Desktop.

Select an option

Save u1and0/fe975845f1c92dca30618e78d062bba0 to your computer and use it in GitHub Desktop.
len
package main
import "fmt"
func main() {
arg := []int{1, 2, 3, 4, 5, 6, 7}
fmt.Println(arg[:-1])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment