Re: [go-nuts] sync.Pool misuse binary-trees

2019-03-07 Thread Sokolov Yura
> Unclear… revise… “it requires a lock & unlock for every get and put of an 
> item"

Not quite exactly. One item per scheduler (could be count as native thread) is 
stored in fast thread local storage. Yes, there are still locks, but for 
separate lock per thread, and this is quite cheap, since not contended.

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Re: why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread fgergo
Similar reason.

You might want to read about slices and arrays in go:
https://golang.org/doc/effective_go.html#slices

This might be helpful as well:
https://gobyexample.com/slices


On 3/8/19, Halbert.Collier Liu  wrote:
> Yes, i see,
> thank you so much!
>
> Could you please explain, why primes[6:6] okay, but primes[7:7] not?
> *:-)*
>
>
> 在 2019年3月7日星期四 UTC+8下午11:55:40,Robert Johnstone写道:
>>
>> Hello,
>>
>> When you use the colon, you taking a subset of the data.  Further, the
>> notation is a closed/open.  So a slice primes[6:6] is all of the element
>> in
>> the array with index >= 6 and index < 6, which is an empty set.  Note that
>>
>> the type of the expression primes[6:6] is []int.
>>
>> When you don't use the colon, you are access a specific element.  Since
>> the count is zero based, the valid indices are 0 through 5 inclusive.
>> Note
>> that the type of the expression primes[6] is simply int.
>>
>> Good luck.
>>
>>
>> On Thursday, 7 March 2019 10:32:04 UTC-5, Halbert.Collier Liu wrote:
>>>
>>> Hi.
>>>
>>> The code like below:
>>>
>>> package main
>>>
>>> import "fmt"
>>>
>>> func main() {
>>> primes := [6]int{2, 3, 5, 7, 11, 13}
>>> fmt.Println(primes[6:6]) .  // *OK*. return:   []
>>> //fmt.Println(primes[6]) .   // fail. out of bounds...
>>> }
>>>
>>> Why?
>>>
>>> Is the golang grammatical feature? or anything else..
>>>
>>> Any help, please!
>>>
>>
>
> --
> 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 https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread Halbert.Collier Liu
Yes, i see, 
thank you so much!

Could you please explain, why primes[6:6] okay, but primes[7:7] not?   *:-)*


在 2019年3月7日星期四 UTC+8下午11:55:40,Robert Johnstone写道:
>
> Hello,
>
> When you use the colon, you taking a subset of the data.  Further, the 
> notation is a closed/open.  So a slice primes[6:6] is all of the element in 
> the array with index >= 6 and index < 6, which is an empty set.  Note that 
> the type of the expression primes[6:6] is []int.
>
> When you don't use the colon, you are access a specific element.  Since 
> the count is zero based, the valid indices are 0 through 5 inclusive.  Note 
> that the type of the expression primes[6] is simply int.
>
> Good luck.
>
>
> On Thursday, 7 March 2019 10:32:04 UTC-5, Halbert.Collier Liu wrote:
>>
>> Hi.
>>
>> The code like below:
>>
>> package main
>>
>> import "fmt"
>>
>> func main() {
>> primes := [6]int{2, 3, 5, 7, 11, 13}
>> fmt.Println(primes[6:6]) .  // *OK*. return:   []
>> //fmt.Println(primes[6]) .   // fail. out of bounds...
>> }
>>
>> Why? 
>>
>> Is the golang grammatical feature? or anything else..
>>
>> Any help, please!
>>
>

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread Halbert.Collier Liu
Yes, i see, 
thank you so much!

Could you please explain, why primes[6:6] okay, but primes[7:7] not?


在 2019年3月7日星期四 UTC+8下午11:55:29,Burak Serdar写道:
>
> On Thu, Mar 7, 2019 at 8:31 AM > 
> wrote: 
> > 
> > Hi. 
> > 
> > The code like below: 
> > 
> > package main 
> > 
> > import "fmt" 
> > 
> > func main() { 
> > primes := [6]int{2, 3, 5, 7, 11, 13} 
> > fmt.Println(primes[6:6]) .  // OK. return:   [] 
> > //fmt.Println(primes[6]) .   // fail. out of bounds... 
> > } 
> > 
> > Why? 
>
> Those two expressions are doing different things: 
>
> primes[6:6] is a slice that begins after the last element of primes, 
> with len=0. You can, for instance, add a new element to primes[6:6], 
> which makes a new slice with one element. primes[6:7], for instance, 
> would be an error, 
>
> primes[6] is an int, accessing the element beyond array bounds, so it 
> is an error. 
>
> > 
> > Is the golang grammatical feature? or anything else.. 
> > 
> > Any help, please! 
> > 
>

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Re: Should IP.DefaultMask() exist in today's Internet?

2019-03-07 Thread Ian Lance Taylor
On Thu, Mar 7, 2019 at 2:42 PM John Dreystadt  wrote:
>
> I have not seen any response to my last posting yet, and I think it is still 
> an open question. I also realized an additional point that I should have 
> pointed out before which is that this is an IPv4 only thing. Which means that 
> I really don't understand when you would use this function. Would it make 
> sense to poll the golang-nuts community to see who is using this call and 
> what for? Other than to determine if an address is IPv4, when To4() should be 
> used instead.

I think you are basically recommending that we add a sentence to the
DefaultMask method docs saying that you should probably be using an
IPMask?  That sounds reasonable to me.

Ian

-- 
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 https://groups.google.com/d/optout.


[go-nuts] UDS and ptp

2019-03-07 Thread liamjcarey
Hi all -

 I'm trying to connect to ptp4l socket (/var/run/ptp4l) to collect stats 
for PTP delay and RMS.

 current code/snippet allows me to connect :


 conn,err := net.Dial("unixgram","/var/run/ptp")  


 but i cannot write properly to the connection (conn). I seem to get an 
unexpected AF_UNSPEC instead of AF_LOCAL and the ptp4l daemon running 
/var/run/ptp4l socket does not return expected data.

 1. Has anyone worked with Unix Domain Sockets while trying to connect to 
the ptp4l implementation of PTP ?
 2. Do i need to implement some kind of socket to socket connection instead 
of trying to talk directly to the /var/run/ptp4l socket?

Regards,

Liam

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: Should IP.DefaultMask() exist in today's Internet?

2019-03-07 Thread John Dreystadt
I have not seen any response to my last posting yet, and I think it is 
still an open question. I also realized an additional point that I should 
have pointed out before which is that this is an IPv4 only thing. Which 
means that I really don't understand when you would use this function. 
Would it make sense to poll the golang-nuts community to see who is using 
this call and what for? Other than to determine if an address is IPv4, when 
To4() should be used instead.

>
>

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: OpenAL and microphone on macos using the mobile pkg

2019-03-07 Thread whitehexagon via golang-nuts
Thanks! That got me some steps further down the rabbit hole :)

gomobile: the Android requires the golang.org/x/mobile/exp/audio/al, but 
the OpenAL libraries was not found. Please run gomobile init with the 
-openal flag pointing to an OpenAL source directory.

So first I tried 'brew reinstall --build-from-source openal-soft'  but 
there were still no sources in that directory (although everything built 
fine).

Next I located the downloaded brew .bz2 file, which was located in: 
'~/Library/Caches/Homebrew' 
and using a symlink of 'openal-soft--1.19.1.tar.bz2'

Manually unpacking that, and then running a new gomobile init pointing to 
that directory got me some distance further before sadly failing.

[  2%] Building C object CMakeFiles/common.dir/common/alcomplex.c.o
In file included from /Users/me/openal-soft-1.19.1/common/alcomplex.c:5:
/Users/me/openal-soft-1.19.1/common/math_defs.h:36:21: error: static 
declaration of 'log2f' follows non-static declaration
static inline float log2f(float f)
^
/Users/me/go/pkg/gomobile/ndk-toolchains/arm/bin/../sysroot/usr/local/include/math.h:38:15:
 
note: previous declaration is here
float log2f(float);

Is there anyway to bypass this step of having to rebuild OpenAL?


On Thursday, 7 March 2019 22:08:50 UTC+1, ma...@eliasnaur.com wrote:
>
>
> I don't use the openal package myself, but I believe you need to set 
> CGO_CFLAGS=-I/usr/local/opt/openal-soft/include.
>
> - elias
>

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: OpenAL and microphone on macos using the mobile pkg

2019-03-07 Thread mail


On Thursday, March 7, 2019 at 7:13:56 PM UTC+1, whiteh...@googlemail.com 
wrote:
>
> go1.12  macos 10.12.4
>
> I haven't been able to find a Go example of this being used so far.  
> However I found a C example that I'm porting over to Go that access the 
> microphone.
>
> All I'm doing so far is 'al.OpenDevice()'
>
> running 'gomobile build' generates this error:
>
> ...golang.org/x/mobile/exp/audio/al/al_android.go:13:10: fatal error: 
> 'AL/al.h' file not found
>
> Working on the assumption that the openal might be missing on my system, I 
> have run this: 'brew install openal-soft'
>
> That hasn't solved the problem.  I took note of the following when doing 
> the brew install, but it also hasn't helped.
>
> For compilers to find openal-soft you may need to set:
>   export LDFLAGS="-L/usr/local/opt/openal-soft/lib"
>   export CPPFLAGS="-I/usr/local/opt/openal-soft/include"
>
>
> Any tips please? the file does appear to be in that location.
>
> btw Since I'm new here, is it okay to ask for help here?  or do you prefer 
> stackoverflow?
>
>
>

I don't use the openal package myself, but I believe you need to set 
CGO_CFLAGS=-I/usr/local/opt/openal-soft/include.

- elias

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Performance comparison of Go, C++, and Java for biological sequencing tool

2019-03-07 Thread Michael Jones
I'm sorry Isaac, I meant multi-language benchmarking generally, nothing
about the specific case you mention so i was slightly tangential to your
original post.

On Thu, Mar 7, 2019 at 9:41 AM 'Isaac Gouy' via golang-nuts <
golang-nuts@googlegroups.com> wrote:

> On Wednesday, March 6, 2019 at 7:22:41 PM UTC-8, Michael Jones wrote:
>>
>> There is another problem about these microbenchmarks as well--they often
>> are ports of an originating C-version.
>>
>
> Which microbenchmarks?
>
> You quoted a reply to a question about "Performance comparison of Go, C++,
> and Java for biological sequencing tool".
>
> For those who haven't looked, that is about an evaluation (done by the
> authors of the elPrep tool) to select a new implementation language for the
> particular case of elPrep.
>
> --
> 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 https://groups.google.com/d/optout.
>


-- 

*Michael T. jonesmichael.jo...@gmail.com *

-- 
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 https://groups.google.com/d/optout.


[go-nuts] OpenAL and microphone on macos using the mobile pkg

2019-03-07 Thread whitehexagon via golang-nuts
go1.12  macos 10.12.4

I haven't been able to find a Go example of this being used so far.  
However I found a C example that I'm porting over to Go that access the 
microphone.

All I'm doing so far is 'al.OpenDevice()'

running 'gomobile build' generates this error:

...golang.org/x/mobile/exp/audio/al/al_android.go:13:10: fatal error: 
'AL/al.h' file not found

Working on the assumption that the openal might be missing on my system, I 
have run this: 'brew install openal-soft'

That hasn't solved the problem.  I took note of the following when doing 
the brew install, but it also hasn't helped.

For compilers to find openal-soft you may need to set:
  export LDFLAGS="-L/usr/local/opt/openal-soft/lib"
  export CPPFLAGS="-I/usr/local/opt/openal-soft/include"


Any tips please? the file does appear to be in that location.

btw Since I'm new here, is it okay to ask for help here?  or do you prefer 
stackoverflow?


-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] sync.Pool misuse binary-trees

2019-03-07 Thread 'Isaac Gouy' via golang-nuts
Is there a more concise way to write

   var check = 1 + self.left.itemCheck() + self.right.itemCheck()
   pool.Put(self.left)
   self.left = nil
   pool.Put(self.right)
   self.right = nil
   return check

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] Performance comparison of Go, C++, and Java for biological sequencing tool

2019-03-07 Thread 'Isaac Gouy' via golang-nuts
On Wednesday, March 6, 2019 at 7:22:41 PM UTC-8, Michael Jones wrote:
>
> There is another problem about these microbenchmarks as well--they often 
> are ports of an originating C-version. 
>

Which microbenchmarks? 

You quoted a reply to a question about "Performance comparison of Go, C++, 
and Java for biological sequencing tool".

For those who haven't looked, that is about an evaluation (done by the 
authors of the elPrep tool) to select a new implementation language for the 
particular case of elPrep.

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread Robert Johnstone
Hello,

When you use the colon, you taking a subset of the data.  Further, the 
notation is a closed/open.  So a slice primes[6:6] is all of the element in 
the array with index >= 6 and index < 6, which is an empty set.  Note that 
the type of the expression primes[6:6] is []int.

When you don't use the colon, you are access a specific element.  Since the 
count is zero based, the valid indices are 0 through 5 inclusive.  Note 
that the type of the expression primes[6] is simply int.

Good luck.


On Thursday, 7 March 2019 10:32:04 UTC-5, Halbert.Collier Liu wrote:
>
> Hi.
>
> The code like below:
>
> package main
>
> import "fmt"
>
> func main() {
> primes := [6]int{2, 3, 5, 7, 11, 13}
> fmt.Println(primes[6:6]) .  // *OK*. return:   []
> //fmt.Println(primes[6]) .   // fail. out of bounds...
> }
>
> Why? 
>
> Is the golang grammatical feature? or anything else..
>
> Any help, please!
>

-- 
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 https://groups.google.com/d/optout.


Re: [go-nuts] why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread Burak Serdar
On Thu, Mar 7, 2019 at 8:31 AM  wrote:
>
> Hi.
>
> The code like below:
>
> package main
>
> import "fmt"
>
> func main() {
> primes := [6]int{2, 3, 5, 7, 11, 13}
> fmt.Println(primes[6:6]) .  // OK. return:   []
> //fmt.Println(primes[6]) .   // fail. out of bounds...
> }
>
> Why?

Those two expressions are doing different things:

primes[6:6] is a slice that begins after the last element of primes,
with len=0. You can, for instance, add a new element to primes[6:6],
which makes a new slice with one element. primes[6:7], for instance,
would be an error,

primes[6] is an int, accessing the element beyond array bounds, so it
is an error.

>
> Is the golang grammatical feature? or anything else..
>
> Any help, please!
>
> --
> 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 https://groups.google.com/d/optout.

-- 
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 https://groups.google.com/d/optout.


[go-nuts] why slice[len:len] okay, but slice[len] fail?

2019-03-07 Thread halbert . collier
Hi.

The code like below:

package main

import "fmt"

func main() {
primes := [6]int{2, 3, 5, 7, 11, 13}
fmt.Println(primes[6:6]) .  // *OK*. return:   []
//fmt.Println(primes[6]) .   // fail. out of bounds...
}

Why? 

Is the golang grammatical feature? or anything else..

Any help, please!

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Adding timing offset data for pprof profiles

2019-03-07 Thread neven . miculinic
This is related to pprof https://github.com/google/pprof/issues/457 issue 
I've opened. 

The usecase is like this:

I have running go service, which periodically has pathological behavior. 
Think every 30ihs seconds some heavy CPU/memory intensive operation 
happens. Or under certain conditions. This pathological behavior is rare 
enough not to be caught by pprof default view; it's masked during process 
lifetime.

Yet it affects latency. 

Enter https://github.com/Netflix/flamescope

It's flamegraph on steroids --> I see profile data in small discrete step 
and can zoom into arbitrary time slice and generate flamegraph from it. 
With it I can easily see pathogenic patterns, zoom into them and further 
investigate. I've used it with perf data, however with perf I'm missing 
golang stack frame (( https://golang.org/doc/go1.12#compiler ; there should 
be some support for that for ARM64, though it comes at 3% CPU cost and I'm 
unsure is it available on other platforms too )).

The only thing needed to bring this into reality is, well, some additional 
data into pprof. Concretely some timestamp/ offset, for example, 
nanoseconds since process start would be enough and easily calculated 
additional datapoint. Even before protobus VLE and gzip compression, this 
would amount for negligible data amount, assuming 101HZ sampling rate & 
100s of samples that are 1 data points /CPU core, which for  8byte 
int64 would equal ~80KB/CPU core, tiny by today standards. 


How does this sound to you?

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: GoLand 2019.1 EAP started today

2019-03-07 Thread Florin Pățan
I created the following issue on our 
tracker: https://youtrack.jetbrains.com/issue/GO-7043

It would be helpful to know what font are you using and what color theme do 
you use as well.
You can also attach the IDE logs from Help | Compress Logs and Show in 
Finder and then attach the zip to the issue above, to help us in the 
investigation.


On Wednesday, March 6, 2019 at 10:49:17 PM UTC+2, Carl Caulkett wrote:
>
> It's worth mentioning that I've tried displaying exactly the same piece of 
> text in Goland 2018.3 and it displays totally correctly!
>
> [image: Screenshot 2019-03-06 at 20.47.02.png]
>
>
> I think it's fair to say that this is an issue in 2019.1 EAP.
>
>
> Cheers,
>
> Carl
>
>
> On Wednesday, March 6, 2019 at 8:41:21 PM UTC, Carl Caulkett wrote:
>>
>> Hi Florin,
>>
>> I've just started using Goland 2019.1 EAP, and so far it seems pretty 
>> stable, except for one strange thing. In my code, I had occasion to type 
>> the word "filter". Bizarrely, the "fi" characters are being displayed as a 
>> telephone emoji. Like so...
>>
>> [image: Screenshot 2019-03-06 at 19.51.29.png]
>>
>>
>> I'm running on macOS 10.14.2 Mojave and I'm not aware of having done any 
>> weird keyboard stuff here. Any ideas what the problem could be?
>>
>>
>> Cheers,
>>
>> Carl
>>
>>
>>
>>
>> On Thursday, January 24, 2019 at 8:34:22 PM UTC, Florin Pățan wrote:
>>>
>>> Hi gophers,
>>>
>>>
>>> Today we started the 2019.1 EAP for GoLand.
>>>
>>> While we are just beginning to roll out the new version, here's a couple 
>>> of features which might be interesting to use:
>>> - Smart Step Into -> a debugging feature which lets you step into 
>>> arbitrary calls in an expression, automatically stepping over the methods 
>>> which you are not interested in
>>> - Rename refactoring allows you to rename methods of an interface and 
>>> all the types that implement the method (you can choose which types to be 
>>> processed or not)
>>>
>>> You can read more about the new features and bug fixes on our blog 
>>> 
>>> .
>>> During the EAP period, the IDE is free to use and reporting bugs would 
>>> help us build an even better development environment focused for Go 
>>> programming.
>>>
>>>
>>> Kind regards,
>>> Florin
>>>
>>

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Gorilla Websocket - Proxy with URL, Username and Password

2019-03-07 Thread Subramanian Sridharan
Hello Gophers,

I've been using Gorilla Websocket for a persistent connection and it has 
been working as expected.
Now there is a need to achieve the same functionality over a Proxy.
After researching a bit, I came across 
http.ProxyFromEnvironment

But I need to connect to the Proxy using an URL, a proxy username and 
password.

It looks like I should use this function 
func (hpd *httpProxyDialer) Dial(network string, addr string) (net.Conn, 
error)

Can someone explain how I should set the Username and Password for the hpd, 
if possible, with an example?

Reference: https://github.com/gorilla/websocket/blob/master/proxy.go

-- 
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 https://groups.google.com/d/optout.


[go-nuts] Re: Go get fails for long paths #30623

2019-03-07 Thread Jan Mercl
On Wed, Mar 6, 2019 at 6:55 PM Ian Lance Taylor  wrote:

> Done. Thanks.

Thank you.

> I'm not quite grasping how that would work. I don't think it's going
to make sense to forward e-mail from golang-nuts to the issue tracker.

I've used a terrible formulation. By forwarding I meant automatically
performing what you've done manually with the OP. Wrt the subscribe
feature, I guess I was thinking about the other way around and conflated
the directions. (As in it's already possible to reply to the issue tracker
by replying to a notification mail received from subscribed issues sent by
Github.)

-- 

-j

-- 
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 https://groups.google.com/d/optout.