16
17var xxhash = xxHash32.New(randomSeed()) // hash.Hash32
18
19func fastHash(clear bool, buf []byte) uint32 {20 xxhash.Reset()
21 xxhash.Write(buf)
22 return xxhash.Sum32()
40 Files []string
41}
42
43func (c routerCtx) GetImages(w http.ResponseWriter, r *http.Request) { 44 w.Header().Set("Content-Type", "application/json")
45 dir, err := embedFS.ReadDir("images")
46 if err != nil {
Unused parameters in functions or methods should be replaced with _
(underscore) or removed.
Functions or methods with unused parameters can be a symptom of unfinished
refactoring or a bug. If an unused parameter is present, it should be named _
(underscore) to avoid raising this issue and better readability.
func abc(unused string) {
fmt.Println("Not using any passed params.")
}
func abc(_ string) {
fmt.Println("Not using any passed params.")
}
func abc() {
fmt.Println("Not using any passed params.")
}