-
Notifications
You must be signed in to change notification settings - Fork 12
/
deflists.go
72 lines (67 loc) · 1.69 KB
/
deflists.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
// Copyright 2020 Alexey Krivonogov. All rights reserved.
// Use of this source code is governed by a MIT license
// that can be found in the LICENSE file.
package main
import "html/template"
type DefItem struct {
Title string
Value string
}
type DefList struct {
Name template.JS
Items []DefItem
}
var (
defaultList = []DefList{
{
Name: `regtype`,
Items: []DefItem{
{`String (SZ)`, `1`},
{`Expand String (EXPAND_SZ)`, `2`},
{`Number (DWORD)`, `4`},
},
},
{
Name: `regaccess`,
Items: []DefItem{
{`---`, `0`},
{`WOW64_32KEY`, `0x00200`},
{`WOW64_64KEY`, `0x00100`},
},
},
{
Name: `regkeys`,
Items: []DefItem{
{`HKEY_CLASSES_ROOT`, `0`},
{`HKEY_CURRENT_USER`, `1`},
{`HKEY_LOCAL_MACHINE`, `2`},
{`HKEY_USERS`, `3`},
{`HKEY_CURRENT_CONFIG`, `4`},
// {`HKEY_PERFORMANCE_DATA`, `5`},
},
},
{
Name: `charmaps`,
Items: []DefItem{
{`utf-8`, `utf-8`},
{`Big5 (Chinese - traditional)`, `Big5`},
{`cp437 (IBM PC US)`, `cp437`},
{`cp866 (MS-DOS Cyrillic Russian)`, `cp866`},
{`EUC-KR (Korean)`, `EUC-KR`},
{`GBK (Chinese - simplified)`, `GBK`},
{"KOI8-R", "KOI8-R"},
{"KOI8-U", "KOI8-U"},
{`Shift JIS (Japanese)`, `Shift_JIS`},
{`windows-1250 (Central European)`, `windows-1250`},
{`windows-1251 (Cyrillic)`, `windows-1251`},
{`windows-1252 (Western European)`, `windows-1252`},
{`windows-1253 (Greek)`, `windows-1253`},
{`windows-1254 (Turkish)`, `windows-1254`},
{`windows-1255 (Hebrew)`, `windows-1255`},
{`windows-1256 (Arabic)`, `windows-1256`},
{`windows-1257 (Baltic)`, `windows-1257`},
{`windows-1258 (Vietnamese)`, `windows-1258`},
},
},
}
)