spiegel_podman/pkg/api/handlers/utils
Kir Kolyshkin 030057aecd Preallocate a slice
When we already know the resulting slice size but still need/want to use
append, it makes sense to preallocate the slice by using make with the
capacity argument.

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:10 -08:00
..
apiutil Bump Go version to v6 2025-10-23 11:00:15 -04:00
containers.go Preallocate a slice 2026-02-11 11:41:10 -08:00
errors.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
handler.go Add POST /libpod/quadlets 2025-12-17 14:37:12 +01:00
handler_test.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
images.go Bump Go version to v6 2025-10-23 11:00:15 -04:00