Skip to content

Commit 6c2b583

Browse files
authored
Merge pull request #3 from arduino/go-mods
Added go module support / added more win32 bindings / updated License
2 parents ed04140 + 7fa3cd5 commit 6c2b583

9 files changed

+509
-259
lines changed

generator.go renamed to doc.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
22
* This file is part of go-win32-utils.
33
*
4-
* arduino-cli is free software; you can redistribute it and/or modify
4+
* Copyright 2018-2023 ARDUINO SA (http://www.arduino.cc/)
5+
*
6+
* go-win32-utils is free software; you can redistribute it and/or modify
57
* it under the terms of the GNU General Public License as published by
68
* the Free Software Foundation; either version 2 of the License, or
79
* (at your option) any later version.
@@ -23,10 +25,8 @@
2325
* the GNU General Public License. This exception does not however
2426
* invalidate any other reasons why the executable file might be covered by
2527
* the GNU General Public License.
26-
*
27-
* Copyright 2018 ARDUINO AG (http://www.arduino.cc/)
2828
*/
2929

30+
// win32 is a collection of useful bindings to Win32 API that are not available in the standard
31+
// golang windows/syscall package.
3032
package win32
31-
32-
//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zshell32_windows.go shell32_windows.go

examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/*
22
* This file is part of go-win32-utils.
33
*
4-
* arduino-cli is free software; you can redistribute it and/or modify
4+
* Copyright 2018-2023 ARDUINO SA (http://www.arduino.cc/)
5+
*
6+
* go-win32-utils is free software; you can redistribute it and/or modify
57
* it under the terms of the GNU General Public License as published by
68
* the Free Software Foundation; either version 2 of the License, or
79
* (at your option) any later version.
@@ -23,8 +25,6 @@
2325
* the GNU General Public License. This exception does not however
2426
* invalidate any other reasons why the executable file might be covered by
2527
* the GNU General Public License.
26-
*
27-
* Copyright 2018 ARDUINO AG (http://www.arduino.cc/)
2828
*/
2929

3030
package win32_test

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/arduino/go-win32-utils
2+
3+
go 1.19
4+
5+
require golang.org/x/sys v0.6.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
2+
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

shell32_fallback.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
// +build !windows
1+
//go:build !windows
22

33
/*
44
* This file is part of go-win32-utils.
55
*
6-
* arduino-cli is free software; you can redistribute it and/or modify
6+
* Copyright 2018-2023 ARDUINO SA (http://www.arduino.cc/)
7+
*
8+
* go-win32-utils is free software; you can redistribute it and/or modify
79
* it under the terms of the GNU General Public License as published by
810
* the Free Software Foundation; either version 2 of the License, or
911
* (at your option) any later version.
@@ -25,8 +27,6 @@
2527
* the GNU General Public License. This exception does not however
2628
* invalidate any other reasons why the executable file might be covered by
2729
* the GNU General Public License.
28-
*
29-
* Copyright 2018 ARDUINO AG (http://www.arduino.cc/)
3030
*/
3131

3232
package win32

shell32_windows.go

Lines changed: 3 additions & 180 deletions
Large diffs are not rendered by default.

syscall_windows.go

Lines changed: 308 additions & 0 deletions
Large diffs are not rendered by default.

zshell32_windows.go

Lines changed: 0 additions & 67 deletions
This file was deleted.

zsyscall_windows.go

Lines changed: 179 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)