Add README, LICENSE, Makefile, Dockerfile, and CI

Add a detailed README, WTFPL LICENSE, and build/CI tooling modeled on
the vaultik repo (Makefile, multi-stage digest-pinned Dockerfile,
.gitea/workflows/check.yml). Bump Go to 1.26.4 and pin golangci-lint
to v2.12.2. gofmt existing sources so the new fmt-check gate passes.
This commit is contained in:
2026-06-28 10:08:44 +02:00
parent 9c4f8a7cc9
commit 7316054b07
10 changed files with 413 additions and 7 deletions

View File

@@ -69,4 +69,4 @@ func CopyFile(src, dst string) (err error) {
"elapsed", elapsed.Round(time.Millisecond),
"throughput_mbps", fmt.Sprintf("%.1f", throughputMBps))
return nil
}
}

View File

@@ -3,8 +3,8 @@
package bsdaily
import (
"os"
"golang.org/x/sys/unix"
"os"
)
func applyFileAdvice(file *os.File, size int64) {
@@ -13,4 +13,4 @@ func applyFileAdvice(file *os.File, size int64) {
_ = unix.Fadvise(fd, 0, size, 2)
// POSIX_FADV_WILLNEED = 3 - prefetch file into cache
_ = unix.Fadvise(fd, 0, size, 3)
}
}

View File

@@ -6,4 +6,4 @@ import "os"
func applyFileAdvice(file *os.File, size int64) {
// Fadvise not available on this platform
}
}