Codebase list golang-github-go-kit-kit / ddc87ca
gofmt -s -w Peter Bourgon 8 years ago
3 changed file(s) with 124 addition(s) and 124 deletion(s). Raw diff Collapse all Expand all
1111 )
1212
1313 var consulState = []*consul.ServiceEntry{
14 &consul.ServiceEntry{
14 {
1515 Node: &consul.Node{
1616 Address: "10.0.0.0",
1717 Node: "app00.local",
2626 },
2727 },
2828 },
29 &consul.ServiceEntry{
29 {
3030 Node: &consul.Node{
3131 Address: "10.0.0.1",
3232 Node: "app01.local",
4141 },
4242 },
4343 },
44 &consul.ServiceEntry{
44 {
4545 Node: &consul.Node{
4646 Address: "10.0.0.1",
4747 Node: "app01.local",
7373
7474 func TestStdlibAdapterSubexps(t *testing.T) {
7575 for input, wantMap := range map[string]map[string]string{
76 "hello world": map[string]string{
77 "date": "",
78 "time": "",
79 "file": "",
80 "msg": "hello world",
81 },
82 "2009/01/23: hello world": map[string]string{
83 "date": "2009/01/23",
84 "time": "",
85 "file": "",
86 "msg": "hello world",
87 },
88 "2009/01/23 01:23:23: hello world": map[string]string{
89 "date": "2009/01/23",
90 "time": "01:23:23",
91 "file": "",
92 "msg": "hello world",
93 },
94 "01:23:23: hello world": map[string]string{
95 "date": "",
96 "time": "01:23:23",
97 "file": "",
98 "msg": "hello world",
99 },
100 "2009/01/23 01:23:23.123123: hello world": map[string]string{
101 "date": "2009/01/23",
102 "time": "01:23:23.123123",
103 "file": "",
104 "msg": "hello world",
105 },
106 "2009/01/23 01:23:23.123123 /a/b/c/d.go:23: hello world": map[string]string{
107 "date": "2009/01/23",
108 "time": "01:23:23.123123",
109 "file": "/a/b/c/d.go:23",
110 "msg": "hello world",
111 },
112 "01:23:23.123123 /a/b/c/d.go:23: hello world": map[string]string{
113 "date": "",
114 "time": "01:23:23.123123",
115 "file": "/a/b/c/d.go:23",
116 "msg": "hello world",
117 },
118 "2009/01/23 01:23:23 /a/b/c/d.go:23: hello world": map[string]string{
119 "date": "2009/01/23",
120 "time": "01:23:23",
121 "file": "/a/b/c/d.go:23",
122 "msg": "hello world",
123 },
124 "2009/01/23 /a/b/c/d.go:23: hello world": map[string]string{
125 "date": "2009/01/23",
126 "time": "",
127 "file": "/a/b/c/d.go:23",
128 "msg": "hello world",
129 },
130 "/a/b/c/d.go:23: hello world": map[string]string{
131 "date": "",
132 "time": "",
133 "file": "/a/b/c/d.go:23",
134 "msg": "hello world",
135 },
136 "2009/01/23 01:23:23.123123 C:/a/b/c/d.go:23: hello world": map[string]string{
137 "date": "2009/01/23",
138 "time": "01:23:23.123123",
139 "file": "C:/a/b/c/d.go:23",
140 "msg": "hello world",
141 },
142 "01:23:23.123123 C:/a/b/c/d.go:23: hello world": map[string]string{
143 "date": "",
144 "time": "01:23:23.123123",
145 "file": "C:/a/b/c/d.go:23",
146 "msg": "hello world",
147 },
148 "2009/01/23 01:23:23 C:/a/b/c/d.go:23: hello world": map[string]string{
149 "date": "2009/01/23",
150 "time": "01:23:23",
151 "file": "C:/a/b/c/d.go:23",
152 "msg": "hello world",
153 },
154 "2009/01/23 C:/a/b/c/d.go:23: hello world": map[string]string{
155 "date": "2009/01/23",
156 "time": "",
157 "file": "C:/a/b/c/d.go:23",
158 "msg": "hello world",
159 },
160 "C:/a/b/c/d.go:23: hello world": map[string]string{
161 "date": "",
162 "time": "",
163 "file": "C:/a/b/c/d.go:23",
164 "msg": "hello world",
165 },
166 "2009/01/23 01:23:23.123123 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": map[string]string{
167 "date": "2009/01/23",
168 "time": "01:23:23.123123",
169 "file": "C:/a/b/c/d.go:23",
170 "msg": ":.;<>_#{[]}\"\\",
171 },
172 "01:23:23.123123 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": map[string]string{
173 "date": "",
174 "time": "01:23:23.123123",
175 "file": "C:/a/b/c/d.go:23",
176 "msg": ":.;<>_#{[]}\"\\",
177 },
178 "2009/01/23 01:23:23 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": map[string]string{
179 "date": "2009/01/23",
180 "time": "01:23:23",
181 "file": "C:/a/b/c/d.go:23",
182 "msg": ":.;<>_#{[]}\"\\",
183 },
184 "2009/01/23 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": map[string]string{
185 "date": "2009/01/23",
186 "time": "",
187 "file": "C:/a/b/c/d.go:23",
188 "msg": ":.;<>_#{[]}\"\\",
189 },
190 "C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": map[string]string{
76 "hello world": {
77 "date": "",
78 "time": "",
79 "file": "",
80 "msg": "hello world",
81 },
82 "2009/01/23: hello world": {
83 "date": "2009/01/23",
84 "time": "",
85 "file": "",
86 "msg": "hello world",
87 },
88 "2009/01/23 01:23:23: hello world": {
89 "date": "2009/01/23",
90 "time": "01:23:23",
91 "file": "",
92 "msg": "hello world",
93 },
94 "01:23:23: hello world": {
95 "date": "",
96 "time": "01:23:23",
97 "file": "",
98 "msg": "hello world",
99 },
100 "2009/01/23 01:23:23.123123: hello world": {
101 "date": "2009/01/23",
102 "time": "01:23:23.123123",
103 "file": "",
104 "msg": "hello world",
105 },
106 "2009/01/23 01:23:23.123123 /a/b/c/d.go:23: hello world": {
107 "date": "2009/01/23",
108 "time": "01:23:23.123123",
109 "file": "/a/b/c/d.go:23",
110 "msg": "hello world",
111 },
112 "01:23:23.123123 /a/b/c/d.go:23: hello world": {
113 "date": "",
114 "time": "01:23:23.123123",
115 "file": "/a/b/c/d.go:23",
116 "msg": "hello world",
117 },
118 "2009/01/23 01:23:23 /a/b/c/d.go:23: hello world": {
119 "date": "2009/01/23",
120 "time": "01:23:23",
121 "file": "/a/b/c/d.go:23",
122 "msg": "hello world",
123 },
124 "2009/01/23 /a/b/c/d.go:23: hello world": {
125 "date": "2009/01/23",
126 "time": "",
127 "file": "/a/b/c/d.go:23",
128 "msg": "hello world",
129 },
130 "/a/b/c/d.go:23: hello world": {
131 "date": "",
132 "time": "",
133 "file": "/a/b/c/d.go:23",
134 "msg": "hello world",
135 },
136 "2009/01/23 01:23:23.123123 C:/a/b/c/d.go:23: hello world": {
137 "date": "2009/01/23",
138 "time": "01:23:23.123123",
139 "file": "C:/a/b/c/d.go:23",
140 "msg": "hello world",
141 },
142 "01:23:23.123123 C:/a/b/c/d.go:23: hello world": {
143 "date": "",
144 "time": "01:23:23.123123",
145 "file": "C:/a/b/c/d.go:23",
146 "msg": "hello world",
147 },
148 "2009/01/23 01:23:23 C:/a/b/c/d.go:23: hello world": {
149 "date": "2009/01/23",
150 "time": "01:23:23",
151 "file": "C:/a/b/c/d.go:23",
152 "msg": "hello world",
153 },
154 "2009/01/23 C:/a/b/c/d.go:23: hello world": {
155 "date": "2009/01/23",
156 "time": "",
157 "file": "C:/a/b/c/d.go:23",
158 "msg": "hello world",
159 },
160 "C:/a/b/c/d.go:23: hello world": {
161 "date": "",
162 "time": "",
163 "file": "C:/a/b/c/d.go:23",
164 "msg": "hello world",
165 },
166 "2009/01/23 01:23:23.123123 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": {
167 "date": "2009/01/23",
168 "time": "01:23:23.123123",
169 "file": "C:/a/b/c/d.go:23",
170 "msg": ":.;<>_#{[]}\"\\",
171 },
172 "01:23:23.123123 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": {
173 "date": "",
174 "time": "01:23:23.123123",
175 "file": "C:/a/b/c/d.go:23",
176 "msg": ":.;<>_#{[]}\"\\",
177 },
178 "2009/01/23 01:23:23 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": {
179 "date": "2009/01/23",
180 "time": "01:23:23",
181 "file": "C:/a/b/c/d.go:23",
182 "msg": ":.;<>_#{[]}\"\\",
183 },
184 "2009/01/23 C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": {
185 "date": "2009/01/23",
186 "time": "",
187 "file": "C:/a/b/c/d.go:23",
188 "msg": ":.;<>_#{[]}\"\\",
189 },
190 "C:/a/b/c/d.go:23: :.;<>_#{[]}\"\\": {
191191 "date": "",
192192 "time": "",
193193 "file": "C:/a/b/c/d.go:23",
201201 }
202202 }
203203 }
204 }
204 }
0 package term
1
2 import "syscall"
3
4 const ioctlReadTermios = syscall.TIOCGETA
0 package term
1
2 import "syscall"
3
4 const ioctlReadTermios = syscall.TIOCGETA