-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Windows prototype line is not in title case #4005
Labels
Comments
Comment 1 by raul.san@sent.com: It's true that not all Windows API calls are in tittle case like, i,e, setsockopt[1], but GetCurrentProcessId is in tittle case. [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740476%28v=vs.85%29.aspx |
Comment 3 by raul.san@sent.com: Ok. The line syscall is: //sys getCurrentProcessId() (pid uint32) = kernel32.getCurrentProcessId Then, in mksyscall_windows.pl says: If go func name needs to be different from it's winapi dll name, the winapi name could be specified at the end, after "=" sign, like //sys LoadLibrary(libname string) (handle uint32, err error) = LoadLibraryA http://golang.org/src/pkg/syscall/mksyscall_windows.pl So we would get: //sys getCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId being getCurrentProcessId() the Go function name and remaining private. |
Comment 4 by raul.san@sent.com: minux: "the name is changed to avoid introducing new API in Go 1.0.x point releases." |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by raul.san@sent.com:
The text was updated successfully, but these errors were encountered: