-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.go
78 lines (68 loc) · 1.06 KB
/
global.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
package main
import (
"fmt"
)
type Handler struct {
IcsFields []string
Content string
}
type TokenUser struct {
Token string `json:"access_token"`
UserId int64 `json:"user_id"`
}
type NDY struct {
Name string
Date string
Year string
}
type FromServer struct {
Error string
}
const (
alarm = `BEGIN:VALARM
TRIGGER:-P0D
DESCRIPTION:reminder
ACTION:DISPLAY
END:VALARM
`
)
var (
url = fmt.Sprintf("https://oauth.vk.com/authorize?client_id=%v&display=popup&response_type=code&redirect_uri=%v/result&scope=friends,offline&v=5.52",
APP_ID, host)
htmlMain = `
<html>
<head>
</head>
<body>
<div align="center">
<a href="/download">Download *.ics File</a>
</div>
<div align="center">
<a href="https://vk.com">VK</a>
</div>
</body>
</html>`
htmlIndex = `
<html>
<head>
</head>
<body>
<div align="center">
<a href="/login">Start</a>
</div>
</body>
</html>`
)
var (
zeroNum = map[string]string{
"1": "01",
"2": "02",
"3": "03",
"4": "04",
"5": "05",
"6": "06",
"7": "07",
"8": "08",
"9": "09",
}
)