Skip to content

Commit d53573e

Browse files
committed
for V0.4 release, change output color
1 parent 329d044 commit d53573e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ func query(word string) {
3232
// Find the result
3333
fmt.Println()
3434
doc.Find(".trans-container > ul > p > span.contentTitle").Each(func(i int, s *goquery.Selection) {
35-
color.Blue(" %s", s.Find(".search-js").Text())
35+
color.Yellow(" %s", s.Find(".search-js").Text())
3636
})
3737
} else {
3838
// Find the result
3939
result := doc.Find("div#phrsListTab > div.trans-container > ul").Text()
40-
color.Blue(result)
40+
color.Green(result)
4141
}
4242

4343
// Show examples
4444
sentences := getSentences(doc, isChinese)
4545
if len(sentences) > 0 {
4646
fmt.Println()
4747
for _, sentence := range sentences {
48-
color.Yellow(" %s", sentence[0])
48+
color.Green(" %s", sentence[0])
4949
color.Magenta(" %s", sentence[1])
5050
}
5151
fmt.Println()

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const (
1515
██║ ██████╔╝██║╚██████╗ ██║
1616
╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝
1717
18-
YDict V0.3
18+
YDict V0.4
1919
https://github.com/TimothyYe/ydict
2020
2121
`

0 commit comments

Comments
 (0)