From 04541063eb756bdc90411320ca0c773fae294575 Mon Sep 17 00:00:00 2001 From: Denis Isaev Date: Sat, 29 Jun 2019 23:27:51 +0300 Subject: [PATCH] test replacement --- .golangci.yml | 1 + p/nums.go | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 p/nums.go diff --git a/.golangci.yml b/.golangci.yml index 0a5e1215..b47629a2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -34,6 +34,7 @@ linters: - scopelint - dupl - interfacer + - gosimple # golangci.com configuration # https://github.com/golangci/golangci/wiki/Configuration diff --git a/p/nums.go b/p/nums.go new file mode 100644 index 00000000..c1b90a11 --- /dev/null +++ b/p/nums.go @@ -0,0 +1,5 @@ +package p + +func GetNumsExceptFirst(nums []int) []int { + return nums[1:len(nums)] +}