-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.go
More file actions
87 lines (68 loc) · 3.08 KB
/
tools.go
File metadata and controls
87 lines (68 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package discard
func (c *Client) BankLogo(domain string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/banklogo", map[string]interface{}{"domain": domain}, nil)
}
func (c *Client) DetectLang(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/detect-lang", map[string]interface{}{"text": text}, nil)
}
func (c *Client) Dictionary(word string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/dictionary", map[string]interface{}{"word": word}, nil)
}
func (c *Client) Dictionary2(word string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/dict", map[string]interface{}{"word": word}, nil)
}
func (c *Client) Mathematics(expr string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/math", map[string]interface{}{"expr": expr}, nil)
}
func (c *Client) Screenshot(url string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/ssweb", map[string]interface{}{"url": url}, nil)
}
func (c *Client) SsPc(url string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/sspc", map[string]interface{}{"url": url}, nil)
}
func (c *Client) SsMobile(url string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/ssmobile", map[string]interface{}{"url": url}, nil)
}
func (c *Client) StyleText(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/styletext", map[string]interface{}{"text": text}, nil)
}
func (c *Client) ReverseText(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/reverse", map[string]interface{}{"text": text}, nil)
}
func (c *Client) Translate(text, to string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/translate", map[string]interface{}{
"text": text,
"to": to,
}, nil)
}
func (c *Client) Translate2(text, lang string) (interface{}, error) {
return c.makeRequest("GET", "/api/go/translate", map[string]interface{}{
"text": text,
"lang": lang,
}, nil)
}
func (c *Client) SimplePing(url string) (interface{}, error) {
return c.makeRequest("GET", "/api/simple/ping", map[string]interface{}{"url": url}, nil)
}
func (c *Client) Counter(count int) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/count", map[string]interface{}{"count": count}, nil)
}
func (c *Client) Whois(domain string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/whois", map[string]interface{}{"domain": domain}, nil)
}
func (c *Client) HandWriting(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/handwrite", map[string]interface{}{"text": text}, nil)
}
func (c *Client) TextStats(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/tools/string", map[string]interface{}{"text": text}, nil)
}
func (c *Client) Wordcount(text string) (interface{}, error) {
return c.makeRequest("GET", "/api/word/count", map[string]interface{}{"text": text}, nil)
}
func (c *Client) Converter(from, to string, value int) (interface{}, error) {
return c.makeRequest("GET", "/api/convert/unit", map[string]interface{}{
"from": from,
"to": to,
"value": value,
}, nil)
}