File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const (
1515 ██║ ██████╔╝██║╚██████╗ ██║
1616 ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝
1717
18- YDict V0.3
18+ YDict V0.4
1919https://github.com/TimothyYe/ydict
2020
2121`
You can’t perform that action at this time.
0 commit comments