forked from NYANDEV/forgejo
ad2642a8aa
* Implementation for calculating language statistics Impement saving code language statistics to database Implement rendering langauge stats Add primary laguage to show in repository list Implement repository stats indexer queue Add indexer test Refactor to use queue module * Do not timeout for queues
10 lines
180 B
Go
10 lines
180 B
Go
package substring
|
|
|
|
// reverse is a helper fn for Suffixes
|
|
func reverse(b []byte) []byte {
|
|
n := len(b)
|
|
for i := 0; i < n/2; i++ {
|
|
b[i], b[n-1-i] = b[n-1-i], b[i]
|
|
}
|
|
return b
|
|
}
|