[go-nuts] Re: problem with starting to use pug/jade

2021-05-08 Thread Brian Candler
You need to get to the point where typing "jade" at the shell runs the jade executable, like this . Did you install the jade executable? The error says the jade executable was not found in your search path

[go-nuts] Re: problem with starting to use pug/jade

2021-05-08 Thread Brian Candler
Note: if "go get github.com/Joker/jade/cmd/jade" gives this error: go get: module github.com/Joker/jade@upgrade found (v1.0.0), but does not contain package github.com/Joker/jade/cmd/jade Then see this issue: https://github.com/Joker/jade/issues/38 I think you're supposed to use "go install" rat

Re: [go-nuts] Still "missing" priority or ordered select in go?

2021-05-08 Thread Ian Lance Taylor
On Fri, May 7, 2021, 3:10 PM Øyvind Teig wrote: > > fredag 7. mai 2021 kl. 04:10:42 UTC+2 skrev Ian Lance Taylor: > >> >> The reason we don't have such a feature is not because of >> implementation difficulty. It's because the feature isn't needed, > > > ..I hope you mean "isn't needed in Go"? >

Re: [go-nuts] [generics] Embedding interfaces

2021-05-08 Thread Ian Lance Taylor
On Fri, May 7, 2021 at 11:08 AM Viet Nguyen wrote: > > I'm trying to convert this code to use generics: > > type Cache interface { > GetIfPresent(interface{}) (interface{}, bool) > } > > type LoadingCache interface { > Cache > Get(interface{}) (interface{}, error) > } > > However, I couldn't find

Re: [go-nuts] [generics] Embedding interfaces

2021-05-08 Thread Viet Nguyen
Awesome. Thanks muchly On Sat, May 8, 2021 at 11:40 PM Ian Lance Taylor wrote: > > On Fri, May 7, 2021 at 11:08 AM Viet Nguyen wrote: > > > > I'm trying to convert this code to use generics: > > > > type Cache interface { > > GetIfPresent(interface{}) (interface{}, bool) > > } > > > > type Loadi

Re: [go-nuts] Still "missing" priority or ordered select in go?

2021-05-08 Thread Øyvind Teig
lørdag 8. mai 2021 kl. 14:02:37 UTC+2 skrev Ian Lance Taylor: > On Fri, May 7, 2021, 3:10 PM Øyvind Teig wrote: > >> >> fredag 7. mai 2021 kl. 04:10:42 UTC+2 skrev Ian Lance Taylor: >> >>> >>> The reason we don't have such a feature is not because of >>> implementation difficulty. It's because

[go-nuts] Is it possible to compare TLS session tickets?

2021-05-08 Thread Nicola Murino
Hi all, in my Go TLS server I need to do something like this: https://github.com/proftpd/proftpd/blob/596125b2fb16b7823a7901c8e350367f67c4b427/contrib/mod_tls.c#L8137 so: 1) check that the client resumed an existing TLS session. For this I think I can use the DidResume bool from the Connectio

[go-nuts] Reflect on Rust for Android and Linux kernel support

2021-05-08 Thread winn
Hi, I may not well thought about this, hope someone else here can take this seriously and have some change( say invest more on some area: kernel, android, the area that Rust can do, etc ) or something else change maybe. You can take this as a feedback. I've see Rust in the Android platform