Skip to content

Commit

Permalink
Update internal/socket go generate, spelling
Browse files Browse the repository at this point in the history
`./internal/socket/socket.go` uses `github.com/Microsoft/go-winio/tools/mkwinsyscall`
instead of `golang.org/x/sys/windows/mkwinsyscall` for its
`//go:generate` directive, keeping it consistent with the rest of the
repo.

Signed-off-by: Hamza El-Saawy <hamzaelsaawy@microsoft.com>
  • Loading branch information
helsaawy committed Aug 29, 2022
1 parent 0a5d776 commit d1b885d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Expand Up @@ -42,7 +42,7 @@ issues:
text: "^line-length-limit: "
source: "^//(go:generate|sys) "

# allow unjustified ignores of error checks in defer statments
# allow unjustified ignores of error checks in defer statements
- linters:
- nolintlint
text: "^directive `//nolint:errcheck` should provide explanation"
Expand Down
2 changes: 1 addition & 1 deletion internal/socket/socket.go
Expand Up @@ -14,7 +14,7 @@ import (
"golang.org/x/sys/windows"
)

//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go socket.go
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go socket.go

//sys getsockname(s windows.Handle, name unsafe.Pointer, namelen *int32) (err error) [failretval==socketError] = ws2_32.getsockname
//sys getpeername(s windows.Handle, name unsafe.Pointer, namelen *int32) (err error) [failretval==socketError] = ws2_32.getpeername
Expand Down
4 changes: 3 additions & 1 deletion internal/socket/zsyscall_windows.go

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

0 comments on commit d1b885d

Please sign in to comment.