[go-nuts] specifying module dependency versions with the present playground

2019-10-29 Thread Dan Kortschak
I am wanting to demonstrate some difference in behaviours with different versions of a dependency using the present playground. However, the go.mod file in the directory holding the code is ignored. Running the commands that golang.org/x/tools/playground (the backend I'm using) respects the go.mod

Re: [go-nuts] Getting a function's linked address?

2019-10-29 Thread Ian Lance Taylor
On Tue, Oct 29, 2019 at 10:54 AM wrote: > > I am wondering if it is possible to get the address of a function but at > link-time. Kind of the equivalent to the C keyword `extern`. > > Maybe using the link name directive? But it is not super clear to me. > > I would like to get them instead at

[go-nuts] Getting a function's linked address?

2019-10-29 Thread julio . nemesis
Hello, I am wondering if it is possible to get the address of a function but at link-time. Kind of the equivalent to the C keyword `extern`. Maybe using the link name directive? But it is not super clear to me. I would like to get them instead at link time instead of using the gosymtab. Thank

Re: [go-nuts] How to open browser with NTLM auth

2019-10-29 Thread Skip Tavakkolian
the code is working, but the user/pass are incorrect. user param may need the domain name (i.e. "DOMAIN\\username") curl uses the stored credentials, which are usually created when user signs in or unlocks a session. On Mon, Oct 28, 2019 at 7:20 PM wrote: > When I use go-ntlmssp I get error

Re: [go-nuts] About go memory model wrong example

2019-10-29 Thread Ian Lance Taylor
On Tue, Oct 29, 2019 at 5:54 AM 林风 wrote: > > 在此输入代码...// this works > > package main > > import ( >"sync" >"sync/atomic" >"time" > ) > > var a int32 > var done int32 > var once sync.Once > > func setup() { >a = 2 >// write >atomic.StoreInt32(, 1) > } > > func

[go-nuts] About go memory model wrong example

2019-10-29 Thread 林风
在此输入代码...// this works package main import ( "sync" "sync/atomic" "time" ) var a int32 var done int32 var once sync.Once func setup() { a = 2 // write atomic.StoreInt32(, 1) } func doprint() { if done == 0 { // if we use atomic to get value here, it's all fine. but