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
syscall: mksyscall_windows.go should be possible to work on internal package #9635
Comments
The generation of syscall wrappers is not automatic, so you need to add a //go:generate go run ../../syscall/mksyscall_windows.go -output And then run go generate. |
it doesn't use name stdsyscall. will be compile error. On 1/20/15, Minux Ma notifications@github.com wrote:
|
OK. I see. We have at least three choices:
I like the 3rd option best. |
@minux you are forgetting another option. We are calling new package internal/syscall/windows and then we don't need to do anything. Alex |
But I don't agree with that package name. Just having to import it under Think text/template and html/template for example. |
My best is mixin On 1/20/15, Minux Ma notifications@github.com wrote:
|
Not a good example. These two are never imported into the same source file. I would say think syscall and golang.orx/x/sys/windows instead. Good names are important. I would like to decide on best possible name now and not to have that bikesheding every time we use these 2 packages together. Alex |
How could you be so sure that text/template and html/template are never I've found about 120 packages that import both packages (of about 2k and https://camlistore.googlesource.com/camlistore.git/+/master/website/camweb.go Similar name collision happen with net/http/pprof and runtime/pprof, If you don't want renaming syscall package, you can only use it in a new |
I believe @alexbrainman fixed this already. |
Related issue #5395
When add new APIs into internal/syscall, we can't use mksyscall_windows.go like below.
internal/syscall_windows.go
The text was updated successfully, but these errors were encountered: