diff --git a/qc.go b/qc.go deleted file mode 100644 index 27d9440..0000000 --- a/qc.go +++ /dev/null @@ -1,49 +0,0 @@ -package main - -import ( - "encoding/json" - "fmt" - "io/ioutil" - "bytes" - "bufio" - "os" - "strings" -) - -type CompareAni struct { - AnidbTitle string `json:"AnidbTitle"` - MeikanTitle string `json:"MeikanTitle"` - AnidbID int `json:"AnidbID"` - MeikanID int `json:"MeikanID"` - QCMatched bool -} - -type resAnimes []CompareAni - -func check(e error) { - if e != nil { - panic(e) - } -} - -func main() { - var animes resAnimes - var err error - dat, err := ioutil.ReadFile("./result.json") - check(err) - err = json.NewDecoder(bytes.NewReader(dat)).Decode(&animes) - check(err) - for i := 0; i < len(animes); i++ { - anime := animes[i] - reader := bufio.NewReader(os.Stdin) - fmt.Printf("%s (Anidb %d)\n%s (Meikan %d)\nAre they the same? (Y/N)", anime.AnidbTitle, anime.AnidbID, anime.MeikanTitle, anime.MeikanID) - text, _ := reader.ReadString('\n') - text = strings.ToLower(text) - if (text == "y") { - anime.QCMatched = true - } else { - anime.QCMatched = false - } - } - fmt.Println(animes[0]) -} \ No newline at end of file diff --git a/test.go b/test.go deleted file mode 100644 index 2f2f1d5..0000000 --- a/test.go +++ /dev/null @@ -1,11 +0,0 @@ -package main - -import ( - "fmt" - "github.com/agext/levenshtein" -) - -func main() { - score := levenshtein.Match("Vampire Hunter D (2000)", "Vampire Hunter D (2001)", nil) - fmt.Print(score) -} \ No newline at end of file