You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you very much for the go-curl package!
I have a question :
In my implementation, when I print out the user data field from the callback function that gets passed to WRITEFUNCTION, i get
{[] 0 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 0}
What is it supposed to contain ?
The following is the code I use
// Callback function to save data instead of redirecting it into stdout.
writeToBufferFunc := func(buf []byte, userdata interface{}) bool {
if silent == false {
b.Write([]byte(buf))
}
logging.Infof("\n\n %v \n\n ", userdata)
return true
}
this.myCurl.Setopt(curl.OPT_WRITEFUNCTION, writeToBufferFunc)
this.myCurl.Setopt(curl.OPT_WRITEDATA, b)
if err := this.myCurl.Perform(); err != nil {
if show_error == true {
return nil, err
} else {
return nil, nil
}
}
The text was updated successfully, but these errors were encountered:
Firstly, thank you very much for the go-curl package!
I have a question :
In my implementation, when I print out the user data field from the callback function that gets passed to WRITEFUNCTION, i get
{[] 0 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 0}
What is it supposed to contain ?
The text was updated successfully, but these errors were encountered: