forked from wangyiwy/oktools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
controler.go
98 lines (74 loc) · 1.78 KB
/
controler.go
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
88
89
90
91
92
93
94
95
96
97
98
package main
import (
"github.com/gin-gonic/gin"
"net/http"
)
func Index(c *gin.Context) {
c.HTML(http.StatusOK, "index.html", nil)
}
func Color(c *gin.Context) {
c.HTML(http.StatusOK, "color.html", nil)
}
func Base64(c *gin.Context) {
c.HTML(http.StatusOK, "base64.html", nil)
}
func Image2Base64(c *gin.Context) {
c.HTML(http.StatusOK, "image2base64.html", nil)
}
func TinyImage(c *gin.Context) {
c.HTML(http.StatusOK, "tinyimg.html", nil)
}
func Hash(c *gin.Context) {
c.HTML(http.StatusOK, "hash.html", nil)
}
func FileHash(c *gin.Context) {
c.HTML(http.StatusOK, "file_hash.html", nil)
}
func JSONView(c *gin.Context) {
c.HTML(http.StatusOK, "json.html", nil)
}
func Number(c *gin.Context) {
c.HTML(http.StatusOK, "number.html", nil)
}
func QRCode(c *gin.Context) {
c.HTML(http.StatusOK, "qrcode.html", nil)
}
func Regex(c *gin.Context) {
c.HTML(http.StatusOK, "regex.html", nil)
}
func Timestamp(c *gin.Context) {
c.HTML(http.StatusOK, "timestamp.html", nil)
}
func WebSocket(c *gin.Context) {
c.HTML(http.StatusOK, "websocket.html", nil)
}
func AES(c *gin.Context) {
c.HTML(http.StatusOK, "aes.html", nil)
}
func DES(c *gin.Context) {
c.HTML(http.StatusOK, "des.html", nil)
}
func RSA(c *gin.Context) {
c.HTML(http.StatusOK, "rsa.html", nil)
}
func Morse(c *gin.Context) {
c.HTML(http.StatusOK, "morse.html", nil)
}
func URL(c *gin.Context) {
c.HTML(http.StatusOK, "url.html", nil)
}
func Unicode(c *gin.Context) {
c.HTML(http.StatusOK, "unicode.html", nil)
}
func JSON2GO(c *gin.Context) {
c.HTML(http.StatusOK, "json2go.html", nil)
}
func JSON2XML(c *gin.Context) {
c.HTML(http.StatusOK, "json2xml.html", nil)
}
func JSON2YAML(c *gin.Context) {
c.HTML(http.StatusOK, "json2yaml.html", nil)
}
func PDF2IMG(c *gin.Context) {
c.HTML(http.StatusOK, "pdf2img.html", nil)
}