Skip to content

Added go module support / added more win32 bindings / updated License #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions generator.go → doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* This file is part of go-win32-utils.
*
* arduino-cli is free software; you can redistribute it and/or modify
* Copyright 2018-2023 ARDUINO SA (http://www.arduino.cc/)
*
* go-win32-utils is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
Expand All @@ -23,10 +25,8 @@
* the GNU General Public License. This exception does not however
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* Copyright 2018 ARDUINO AG (http://www.arduino.cc/)
*/

// win32 is a collection of useful bindings to Win32 API that are not available in the standard
// golang windows/syscall package.
package win32

//go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zshell32_windows.go shell32_windows.go
6 changes: 3 additions & 3 deletions examples_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*
* This file is part of go-win32-utils.
*
* arduino-cli is free software; you can redistribute it and/or modify
* Copyright 2018-2023 ARDUINO SA (http://www.arduino.cc/)
*
* go-win32-utils is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
Expand All @@ -23,8 +25,6 @@
* the GNU General Public License. This exception does not however
* invalidate any other reasons why the executable file might be covered by
* the GNU General Public License.
*
* Copyright 2018 ARDUINO AG (http://www.arduino.cc/)
*/

package win32_test
Expand Down
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module github.com/arduino/go-win32-utils

go 1.19

require golang.org/x/sys v0.6.0
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
8 changes: 4 additions & 4 deletions shell32_fallback.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// +build !windows
//go:build !windows

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

package win32
Expand Down
183 changes: 3 additions & 180 deletions shell32_windows.go

Large diffs are not rendered by default.

308 changes: 308 additions & 0 deletions syscall_windows.go

Large diffs are not rendered by default.

67 changes: 0 additions & 67 deletions zshell32_windows.go

This file was deleted.

179 changes: 179 additions & 0 deletions zsyscall_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.