I was meaning an equivalent to declaring an extern function using the same name
as the symbol we want. The function address will be the linked symbol address.
I indeed use the reflect package today, but this happen at run time while I
would like to get those values at link time. I'd like to crea
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
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 lin
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
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 401
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(&done, 1)
> }
>
> func dopr
在此输入代码...// 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(&done, 1)
}
func doprint() {
if done == 0 { // if we use atomic to get value here, it's all fine.