projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
.gitignore added
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.1.1
/
simple
/
testdata
/
src
/
CheckLoopSlide
/
LintLoopSlide.go.golden
1
package pkg
2
3
func fn() {
4
var n int
5
var bs []int
6
var offset int
7
8
copy(bs[:n], bs[offset:])
9
10
for i := 1; i < n; i++ { // not currently supported
11
bs[i] = bs[offset+i]
12
}
13
14
for i := 1; i < n; i++ { // not currently supported
15
bs[i] = bs[i+offset]
16
}
17
18
for i := 0; i <= n; i++ {
19
bs[i] = bs[offset+i]
20
}
21
}