Browse Source

fix wordlist paths

pull/1782/head
Ethan Buchman 7 years ago
parent
commit
156416fe27
3 changed files with 45 additions and 43 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      keys/words/wordcodec.go
  3. +43
    -41
      keys/words/wordlist/wordlist.go

+ 1
- 1
Makefile View File

@ -15,7 +15,7 @@ check: check_tools
wordlist:
# Generating wordlist.go...
go-bindata -ignore ".*\.go" -o keys/wordlist/wordlist.go -pkg "wordlist" keys/wordlist/...
go-bindata -ignore ".*\.go" -o keys/words/wordlist/wordlist.go -pkg "wordlist" keys/words/wordlist/...
build: wordlist
# Nothing else to build!


+ 1
- 1
keys/words/wordcodec.go View File

@ -61,7 +61,7 @@ func MustLoadCodec(bank string) *WordCodec {
// loadBank opens a wordlist file and returns all words inside
func loadBank(bank string) ([]string, error) {
filename := "keys/wordlist/" + bank + ".txt"
filename := "keys/words/wordlist/" + bank + ".txt"
words, err := wordlist.Asset(filename)
if err != nil {
return nil, err


+ 43
- 41
keys/words/wordlist/wordlist.go
File diff suppressed because it is too large
View File


Loading…
Cancel
Save