mirror of
https://codeberg.org/scip/valpass.git
synced 2025-12-16 20:21:00 +01:00
move to codeberg (#1)
This commit is contained in:
@@ -3,12 +3,13 @@ package valpass_test
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/tlinden/valpass"
|
||||
"codeberg.org/scip/valpass/v2"
|
||||
)
|
||||
|
||||
type Passwordlist [][]string
|
||||
@@ -372,7 +373,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)
|
||||
|
||||
Reference in New Issue
Block a user