move to codeberg (#1)

This commit is contained in:
T. von Dein
2025-12-06 20:25:43 +01:00
parent 340bb59796
commit d80451fc7a
9 changed files with 164 additions and 65 deletions

View File

@@ -6,7 +6,7 @@ import (
"log"
"os"
"github.com/tlinden/valpass"
"codeberg.org/scip/valpass/v2"
)
const template string = `
@@ -58,7 +58,11 @@ func ReadDict(path string) []string {
if err != nil {
panic(err)
}
defer file.Close()
defer func() {
if err := file.Close(); err != nil {
log.Fatal(err)
}
}()
var lines []string
scanner := bufio.NewScanner(file)