-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.go
160 lines (155 loc) · 6.58 KB
/
examples.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package basic
import (
"github.com/devlights/try-golang/examples/basic/array"
"github.com/devlights/try-golang/examples/basic/base64op"
"github.com/devlights/try-golang/examples/basic/binaryop"
"github.com/devlights/try-golang/examples/basic/bitop"
"github.com/devlights/try-golang/examples/basic/bufferop"
"github.com/devlights/try-golang/examples/basic/builtins"
"github.com/devlights/try-golang/examples/basic/byteop"
"github.com/devlights/try-golang/examples/basic/cmdexec"
"github.com/devlights/try-golang/examples/basic/comments"
"github.com/devlights/try-golang/examples/basic/constants"
"github.com/devlights/try-golang/examples/basic/containers"
"github.com/devlights/try-golang/examples/basic/convert"
"github.com/devlights/try-golang/examples/basic/cryptos"
"github.com/devlights/try-golang/examples/basic/csvop"
"github.com/devlights/try-golang/examples/basic/defers"
"github.com/devlights/try-golang/examples/basic/embeds"
"github.com/devlights/try-golang/examples/basic/enum"
"github.com/devlights/try-golang/examples/basic/errs"
"github.com/devlights/try-golang/examples/basic/fileio"
"github.com/devlights/try-golang/examples/basic/filepaths"
"github.com/devlights/try-golang/examples/basic/floatop"
"github.com/devlights/try-golang/examples/basic/formatting"
"github.com/devlights/try-golang/examples/basic/functions"
"github.com/devlights/try-golang/examples/basic/goroutines"
"github.com/devlights/try-golang/examples/basic/helloworld"
"github.com/devlights/try-golang/examples/basic/hexop"
"github.com/devlights/try-golang/examples/basic/imports"
"github.com/devlights/try-golang/examples/basic/interfaces"
"github.com/devlights/try-golang/examples/basic/internalpkg"
"github.com/devlights/try-golang/examples/basic/ioop"
"github.com/devlights/try-golang/examples/basic/jsonop"
"github.com/devlights/try-golang/examples/basic/literals"
"github.com/devlights/try-golang/examples/basic/logging"
"github.com/devlights/try-golang/examples/basic/loops"
"github.com/devlights/try-golang/examples/basic/maps"
"github.com/devlights/try-golang/examples/basic/maths"
"github.com/devlights/try-golang/examples/basic/methods"
"github.com/devlights/try-golang/examples/basic/mutex"
"github.com/devlights/try-golang/examples/basic/network"
"github.com/devlights/try-golang/examples/basic/osop"
"github.com/devlights/try-golang/examples/basic/panics"
"github.com/devlights/try-golang/examples/basic/profiles"
"github.com/devlights/try-golang/examples/basic/reflects"
"github.com/devlights/try-golang/examples/basic/runtimes"
"github.com/devlights/try-golang/examples/basic/scannerop"
"github.com/devlights/try-golang/examples/basic/scanop"
"github.com/devlights/try-golang/examples/basic/scope"
"github.com/devlights/try-golang/examples/basic/signals"
"github.com/devlights/try-golang/examples/basic/slices"
"github.com/devlights/try-golang/examples/basic/sorts"
"github.com/devlights/try-golang/examples/basic/stacktrace"
"github.com/devlights/try-golang/examples/basic/stdin"
"github.com/devlights/try-golang/examples/basic/stdout"
"github.com/devlights/try-golang/examples/basic/strconvs"
"github.com/devlights/try-golang/examples/basic/streams"
"github.com/devlights/try-golang/examples/basic/strs"
"github.com/devlights/try-golang/examples/basic/structs"
"github.com/devlights/try-golang/examples/basic/syncs"
"github.com/devlights/try-golang/examples/basic/system"
"github.com/devlights/try-golang/examples/basic/templates"
"github.com/devlights/try-golang/examples/basic/times"
"github.com/devlights/try-golang/examples/basic/tomlop"
"github.com/devlights/try-golang/examples/basic/tsvop"
"github.com/devlights/try-golang/examples/basic/types"
"github.com/devlights/try-golang/examples/basic/unsafes"
"github.com/devlights/try-golang/examples/basic/urls"
"github.com/devlights/try-golang/examples/basic/variables"
"github.com/devlights/try-golang/examples/basic/xmlop"
"github.com/devlights/try-golang/examples/basic/yamlop"
"github.com/devlights/try-golang/examples/basic/zerovalues"
"github.com/devlights/try-golang/mapping"
)
type (
register struct{}
)
// NewRegister は、basic パッケージ用の lib.Register を返します.
func NewRegister() mapping.Register {
r := new(register)
return r
}
// Regist は、basic パッケージ配下に存在するサンプルを登録します.
func (r *register) Regist(m mapping.ExampleMapping) {
array.NewRegister().Regist(m)
base64op.NewRegister().Regist(m)
binaryop.NewRegister().Regist(m)
bitop.NewRegister().Regist(m)
builtins.NewRegister().Regist(m)
bufferop.NewRegister().Regist(m)
byteop.NewRegister().Regist(m)
cmdexec.NewRegister().Regist(m)
comments.NewRegister().Regist(m)
constants.NewRegister().Regist(m)
containers.NewRegister().Regist(m)
convert.NewRegister().Regist(m)
cryptos.NewRegister().Regist(m)
csvop.NewRegister().Regist(m)
defers.NewRegister().Regist(m)
embeds.NewRegister().Regist(m)
enum.NewRegister().Regist(m)
errs.NewRegister().Regist(m)
fileio.NewRegister().Regist(m)
filepaths.NewRegister().Regist(m)
floatop.NewRegister().Regist(m)
formatting.NewRegister().Regist(m)
functions.NewRegister().Regist(m)
goroutines.NewRegister().Regist(m)
helloworld.NewRegister().Regist(m)
hexop.NewRegister().Regist(m)
interfaces.NewRegister().Regist(m)
imports.NewRegister().Regist(m)
internalpkg.NewRegister().Regist(m)
ioop.NewRegister().Regist(m)
jsonop.NewRegister().Regist(m)
osop.NewRegister().Regist(m)
profiles.NewRegister().Regist(m)
streams.NewRegister().Regist(m)
literals.NewRegister().Regist(m)
logging.NewRegister().Regist(m)
loops.NewRegister().Regist(m)
maps.NewRegister().Regist(m)
maths.NewRegister().Regist(m)
methods.NewRegister().Regist(m)
mutex.NewRegister().Regist(m)
network.NewRegister().Regist(m)
panics.NewRegister().Regist(m)
reflects.NewRegister().Regist(m)
runtimes.NewRegister().Regist(m)
scannerop.NewRegister().Regist(m)
scanop.NewRegister().Regist(m)
scope.NewRegister().Regist(m)
signals.NewRegister().Regist(m)
slices.NewRegister().Regist(m)
sorts.NewRegister().Regist(m)
stacktrace.NewRegister().Regist(m)
stdin.NewRegister().Regist(m)
stdout.NewRegister().Regist(m)
strconvs.NewRegister().Regist(m)
strs.NewRegister().Regist(m)
structs.NewRegister().Regist(m)
syncs.NewRegister().Regist(m)
system.NewRegister().Regist(m)
templates.NewRegister().Regist(m)
times.NewRegister().Regist(m)
tomlop.NewRegister().Regist(m)
tsvop.NewRegister().Regist(m)
types.NewRegister().Regist(m)
unsafes.NewRegister().Regist(m)
urls.NewRegister().Regist(m)
variables.NewRegister().Regist(m)
xmlop.NewRegister().Regist(m)
yamlop.NewRegister().Regist(m)
zerovalues.NewRegister().Regist(m)
}