[go-nuts] Re: How do i create a fake drive that shows up in windows explorer?

2016-07-28 Thread brainman
I do not know how to build what you want - Go or not Go. I suspect you would have to use some low level tools to build something like that. Perhaps you should ask this question somewhere where more Windows programmers hangout. Maybe try posting this (without mentioning Go) on

Re: [go-nuts] filepath.Clean

2016-07-13 Thread brainman
I don't remember. I suspect I was only worried about making tests pass. And keep existing code as simple as I have found it. (Just as Ian explained) Alex On Thursday, 14 July 2016 06:41:53 UTC+10, Anmol Sethi wrote: > > I’ve cced him, hopefully he can state exactly why. > > > On Jul 13, 2016,

[go-nuts] Re: Syscall trouble with parameter handling

2017-02-21 Thread brainman
According to the doco https://msdn.microsoft.com/en-us/library/windows/desktop/dn889862(v=vs.85).aspx ``` Return value If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. ``` Your call returns 2147942487, and it is not S_OK. It must be the error code. You

[go-nuts] Re: Syscall trouble with parameter handling

2017-02-22 Thread brainman
> Has anyone a hint, what i'm doing wrong with the Call arguments? I do not know. Sorry. > I think the last parameter is the problematic one, ... It looks fine to me. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Meet runtime.typedslicecopy: nosplit stack overflow error when cross platform compiling.

2016-08-15 Thread brainman
On Saturday, 13 August 2016 12:52:23 UTC+10, Dorival Pedroso wrote: > > Any ideas? > Maybe it is issue https://github.com/golang/go/issues/16180 ? Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: File organization in a github-ed Go project

2017-02-27 Thread brainman
> if someone wants to fork my github project, he would have change my username bstarynk/ by his own one in every package path When I contribute to other people's projects on Gitub, I just "go get" their package, and adjust my "git remote" settings for the package so can push all my changes

Re: [go-nuts] Go Language tests

2017-02-26 Thread brainman
Or you can run src\all.bat on Windows. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] Re: Unable to Get SID in golang

2016-08-31 Thread brainman
On Thursday, 1 September 2016 00:10:39 UTC+10, kumargv wrote: > I am getting SID of my system using WMI > > >wmic useraccount where name='vijay' get sid > SID > S-1-5-21-742204146-2006990925-2362806598-1001 > > But still i am not able to get sid structure . golang.org/x/sys/windows.SID is

[go-nuts] Re: Accessing Ms SQL Server with Go

2016-08-24 Thread brainman
I use github.com/alexbrainman/odbc to access mssql server from windows. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] Re: SQLite3 Support without CGo

2016-12-12 Thread brainman
I was toying with this idea myself. Maybe even going all the way with "pure" Go version - with something similar to https://github.com/nkbai/go-memorydll :-) Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group

[go-nuts] Re: [golang-dev] go version inconsistency with Linux and Windows

2016-12-05 Thread brainman
This is what my system prints: ``` C:\dev\go\src>go version go version devel +69313ee Thu Nov 17 19:44:05 2016 +1100 windows/386 C:\dev\go\src>echo "AAA" "AAA" C:\dev\go\src> ``` Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

[go-nuts] Re: Go 1.6.1 Link problem on Windows:

2017-01-01 Thread brainman
If you can provide steps to reproduce your problem here https://golang.org/issue/new, I will try to investigate it. Thank you. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from

Re: [go-nuts] cross compile windows from linux failed with -H=windowsgui

2017-03-13 Thread brainman
I think we should just get rid of Hwindowsgui. I am pretty sure it is only different from Hwindows in one place in cmd/link. I will try and implement this when I have time. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Re: mixed C / Go debugging

2017-06-12 Thread brainman
> ... I also tried to load the go extension for gdb with "source C:/utils/go/src/runtime/runtime-gdb.py", but it doesn't do much good, Yes, I tried that recently. It didn't work for me either. From what I remember, you had to have "python support" with gdb, and that, apparently, is hard. I

[go-nuts] Re: mixed C / Go debugging

2017-06-06 Thread brainman
It would be useful if you provide complete instructions of what you did, so we could at least be able to reproduce it here. Including complete source code and description of environment and tools you use. Thank you. Alex -- You received this message because you are subscribed to the Google

[go-nuts] Re: mixed C / Go debugging

2017-06-11 Thread brainman
Thank you very much for instructions. I could reproduce what you see. Unfortunately I do not have much to suggest. dlv expects executable to be written in Go. dlv searches executable for particular symbols (among many other things). That is why you see "could not get Go symbols no

[go-nuts] Re: Crash after sending thousands of http requests (go version go1.8.3 windows/amd64)

2017-06-05 Thread brainman
> Exception 0xc005 0x0 0x 0x7ffbea7bc8eb > PC=0x7ffbea7bc8ebx > > syscall.Syscall6(0x7ffbea7b8a80, 0x4, 0x4, 0x1138ad0, 0xc04223d3d0, > 0xc04223d3e0, 0x0, 0x0, 0xc0422f1a00, 0x30002, ...) > C:/Go/src/runtime/syscall_windows.go:174 +0x6b >

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-11 Thread brainman
> On Wednesday, 11 October 2017 16:04:28 UTC+11, Pat Farrell wrote: > 1) is the standard documentation wrong/out of date? What documentation are you referring to? Did you read https://golang.org/doc/code.html ? > 2) how do I get the go build process to create a hello.exe rather than go.exe?

[go-nuts] Re: os/exec CreateProcessAsUser

2017-09-04 Thread brainman
On Tuesday, 5 September 2017 08:56:24 UTC+10, Daniel Smith wrote: > > > Is there is any way to have os/exec call CreateProcessAsUser or > CreateProcessWithLogon? > I've tried calling ImpersonateLoggedOnUser, as well as replacing the user > token after the process is spawned, and neither route

Re: [go-nuts] Unexpected cgo argument has Go pointer to Go pointer

2017-08-29 Thread brainman
On Wednesday, 30 August 2017 03:54:10 UTC+10, Phil Noel wrote: > By using syscall.NewLazyDLL and dynamically loading the function, then > with the loaded function just use func.Call(). > Yes, that is what everyone is doing, including Go standard library. You can also use syscall.Syscall,

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-11 Thread brainman
On Thursday, 12 October 2017 09:28:42 UTC+11, Pat Farrell wrote: > Yes, I didn't understand what a "workspace" is. Still don't know what that buzzword means. I suggested you read https://golang.org/doc/code.html - it should answer your question. But if you prefer me explaining it (and I am not

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-11 Thread brainman
> On Thursday, 12 October 2017 02:34:49 UTC+11, Pat Farrell wrote: > > https://golang.org/doc/install This one says "... Next, make the directory src/hello inside your workspace ...". And, I take it, you skipped that step. > ... Microsoft has decided to provide a real bash shell with real

[go-nuts] Re: go on Windows 10 from the bash shell (and the cmd shell)

2017-10-11 Thread brainman
On Thursday, 12 October 2017 11:23:08 UTC+11, Pat Farrell wrote: > ... But there was nothing that told me why. Are you asking me why all your Go code should live inside of single directory? Hopefully others will reply. But I think it is because Go does not use any config files to build

[go-nuts] Re: Concerning the level required to contribute to Go

2019-06-22 Thread brainman
Levieux, It is normal to doubt your abilities. I still doubt my abilities after many years of contributing to Go. In my view, from what you told about yourself, you should have plenty of experience to contribute to the project. Pretty much everything in Go project is written in Go. So, if you

[go-nuts] Re: runtime shutdown internal routines? / locating Go runtime threads

2020-03-05 Thread brainman
What is your problem? If you fill in this http://golang.org/issue/new Some might help you. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] Re: McAfee and the module cache on WSL: rename : permission denied

2020-03-13 Thread brainman
On Friday, 13 March 2020 08:58:24 UTC+11, Chris Burkert wrote: > > Dear all, > > besides other environments I have a company laptop running Windows 10 > Enterprise with WSL and Ubuntu. In Ubuntu I installed Go 1.14 and wanted to > play around with Gio for fun. However it seems that McAfee

[go-nuts] Re: Build c-shared ASLR Windows dll

2020-09-15 Thread brainman
CL you are referring to onle changed executables. I don't think DLLs were fixed. Please file an issue, maybe someone will fix your problem, Thank you. Alex On Wednesday, 16 September 2020 at 02:41:24 UTC+10 Quim Muntal wrote: > Hi everyone, > > I need to export some Go function as a

Re: [go-nuts] Building application for windows server 2008 using go 1.13+

2020-07-29 Thread brainman
Hello Maixm, If you look at https://golang.org/doc/go1.13#windows page source, you will see that it says ``` Windows The Windows version specified by internally-linked Windows binaries is now Windows 7 rather than NT 4.0. This was already the minimum required version for Go, but can affect

[go-nuts] Re: Windows Binaries and stdout

2022-04-29 Thread brainman
Hello Stephen, Windows uses special flag in every executable binary to determine if executable is a GUI or command line program. go program uses "-H windows" linker flag to set that flag. See debug/pe.TestBuildingWindowsGUI for details. Once windows executable is built, go has no control over

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
ies your need, but you can try Golds: > https://go101.org/apps-and-libs/golds.html > > On Sunday, September 11, 2022 at 5:28:35 AM UTC+8 brainman wrote: > >> Hello Everyone, >> >> I would like to run go documentation server that have access to my >> private code.

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
Thank you for instructions. I managed to run godoc. But godoc only displays standard library packages. Is it possible to configure godoc so it displays packages stored in private github repos ? Thank you. Alex On Sunday, 11 September 2022 at 18:40:01 UTC+10 Jan Mercl wrote: > On Sun, Sep

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
our docs for local github repos. > > I wonder if it's go workspace aware yet? > > S > > On Mon, 12 Sept 2022 at 09:01, brainman wrote: > >> Thank you for instructions. >> >> I managed to run godoc. >> >> But godoc only displays standard library pac

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
You probably run godoc from inside your module directory. Alex On Monday, 12 September 2022 at 18:31:11 UTC+10 Jan Mercl wrote: > On Mon, Sep 12, 2022 at 10:01 AM brainman wrote: > > > I managed to run godoc. > > > > But godoc only displays standard library packages

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread brainman
; > On Sun, Sep 11, 2022 at 8:01 AM peterGo wrote: > > > > https://go.googlesource.com/pkgsite/ > > > > On Saturday, September 10, 2022 at 5:28:35 PM UTC-4 brainman wrote: > >> > >> Hello Everyone, > >> > >> I would like to run go docu

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread brainman
Thanks for the link, peterGo. Looks complicated to configure and run. I will try to run it when I have time. Alex On Sunday, 11 September 2022 at 08:01:03 UTC+10 peterGo wrote: > https://go.googlesource.com/pkgsite/ > > On Saturday, September 10, 2022 at 5:28:35 PM UTC-4 brain

[go-nuts] private go documentation server similar to https://pkg.go.dev

2022-09-10 Thread brainman
Hello Everyone, I would like to run go documentation server that have access to my private code. Is it possible to do? I am happy to run the server myself, if it is easy to setup, and if it requires no maintenance. I am also happy to use external company if they provide that kind of

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-23 Thread brainman
18:31:11 UTC+10 Jan Mercl wrote: > On Mon, Sep 12, 2022 at 10:01 AM brainman wrote: > > > I managed to run godoc. > > > > But godoc only displays standard library packages. > > > > Is it possible to configure godoc so it displays packages stored in >

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-22 Thread brainman
equipment from Raspberry PI. Alex On Monday, 12 September 2022 at 19:50:04 UTC+10 Sebastien Binet wrote: > On Mon Sep 12, 2022 at 11:04 CET, brainman wrote: > > Thanks for the link. I briefly looked at that program, and I cannot even > > figure it out how I can use it for my