Skip to content

Commit 8266d64

Browse files
committed
Silenced some lint warnings
1 parent 18ac93c commit 8266d64

File tree

1 file changed

+40
-13
lines changed

1 file changed

+40
-13
lines changed

Diff for: syscall_windows.go

+40-13
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ const csidlSystemX86 = 41
234234
const csidlTemplates = 21
235235
const csidlWindows = 36
236236

237+
// WndClass FIXMEDOCS
237238
type WndClass struct {
238239
Style uint32
239240
WndProc uintptr
@@ -247,11 +248,13 @@ type WndClass struct {
247248
ClassName *byte
248249
}
249250

251+
// Point FIXMEDOCS
250252
type Point struct {
251253
X int32
252254
Y int32
253255
}
254256

257+
// TagMSG FIXMEDOCS
255258
type TagMSG struct {
256259
Hwnd syscall.Handle
257260
Message uint32
@@ -262,23 +265,35 @@ type TagMSG struct {
262265
LPrivate int32
263266
}
264267

268+
// WMQuit FIXMEDOCS
265269
const WMQuit = 0x0012
266270

267-
const WsExDlgModalFrame = 0x00000001
268-
const WsExTopmost = 0x00000008
269-
const WsExTransparent = 0x00000020
270-
const WsExMDIChild = 0x00000040
271-
const WsExToolWindow = 0x00000080
272-
const WsExAppWindow = 0x00040000
273-
const WsExLayered = 0x00080000
271+
const (
272+
// WsExDlgModalFrame FIXMEDOCS
273+
WsExDlgModalFrame = 0x00000001
274+
// WsExTopmost FIXMEDOCS
275+
WsExTopmost = 0x00000008
276+
// WsExTransparent FIXMEDOCS
277+
WsExTransparent = 0x00000020
278+
// WsExMDIChild FIXMEDOCS
279+
WsExMDIChild = 0x00000040
280+
// WsExToolWindow FIXMEDOCS
281+
WsExToolWindow = 0x00000080
282+
// WsExAppWindow FIXMEDOCS
283+
WsExAppWindow = 0x00040000
284+
// WsExLayered FIXMEDOCS
285+
WsExLayered = 0x00080000
286+
)
274287

288+
// GUID FIXEMEDOCS
275289
type GUID struct {
276290
Data1 uint32
277291
Data2 uint16
278292
Data3 uint16
279293
Data4 [8]byte
280294
}
281295

296+
// DevBroadcastDeviceInterface FIXMEDOCS
282297
type DevBroadcastDeviceInterface struct {
283298
DwSize uint32
284299
DwDeviceType uint32
@@ -295,14 +310,26 @@ var UsbEventGUID GUID = GUID{
295310
Data4: [8]byte{0x90, 0x1f, 0x00, 0xc0, 0x4f, 0xb9, 0x51, 0xed},
296311
}
297312

298-
const DeviceNotifyWindowHandle = 0
299-
const DeviceNotifySserviceHandle = 1
300-
const DeviceNotifyAllInterfaceClasses = 4
313+
const (
314+
// DeviceNotifyWindowHandle FIXMEDOCS
315+
DeviceNotifyWindowHandle = 0
316+
// DeviceNotifySserviceHandle FIXMEDOCS
317+
DeviceNotifySserviceHandle = 1
318+
// DeviceNotifyAllInterfaceClasses FIXMEDOCS
319+
DeviceNotifyAllInterfaceClasses = 4
320+
)
301321

322+
// DbtDevtypeDeviceInterface FIXMEDOCS
302323
const DbtDevtypeDeviceInterface = 5
303324

304-
const PMNoRemove = 0x0000
305-
const PMRemove = 0x0001
306-
const PMNoYield = 0x0002
325+
const (
326+
// PMNoRemove FIXMEDOCS
327+
PMNoRemove = 0x0000
328+
// PMRemove FIXMEDOCS
329+
PMRemove = 0x0001
330+
// PMNoYield FIXMEDOCS
331+
PMNoYield = 0x0002
332+
)
307333

334+
// WindowProcCallback FIXMEDOCS
308335
type WindowProcCallback func(hwnd syscall.Handle, msg uint32, wParam uintptr, lParam uintptr) uintptr

0 commit comments

Comments
 (0)