Does anyone have a pointer to production code that uses CloseRead or
CloseWrite (TCPConn or UnixConn)? I am aware of the net/http test cases.
Thanks,
-Skip
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
if want to run those utilities in Plan 9 you don't need to worry about
speaking 9P with the underlying services -- i.e. no need for plan9/client
package. the file hierarchies for plumber, acme, draw, etc. are mounted
into the process' namespace. for example, acme's namespace is mounted on
> except for the same problem of *os.File not implementing
> io.ByteReader, and the fact that now the same function on different
> platforms has different signatures, because the default plumb.Open is
> defined as returning a concrete type from plan9/client, not an
> interface..)
>
>
Hi Erfan,
This is cool! I skimmed through the videos. I think the videos are great
for students learning Go as their first language.
I read the intro page, and I think your reasons for "a bright future for
Go" are reasonable but somewhat subjective. I think it would be useful to
include why Go
Although "go" is a verb, an adjective and a noun (including the game),
there shouldn't be any confusion in what Go is, when posting to a list
dedicated to the language.
Thanks,
-Skip
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To
I was specifically referring to things posted to this list to avoid the old
chestnut about search.
For what it's worth, I don't buy that argument either. Searching for "game
of life in go language" works just as well. Correctness matters even when
nobody is looking.
On Tue, Jul 25, 2017, 2:47 PM
Erlang is assumed to be a node to the Danish mathematician Erlang, an
important figure in telephony queuing theory.
On Sun, Jul 30, 2017, 9:10 PM simran wrote:
> Er?
>
> sorry, couldn't help myself :)
>
> Go Go!
>
>
>
> On Mon, Jul 31, 2017 12:24 PM, Dave Cheney d...@cheney.net
i think the compiler has identified both problems correctly; c is nil (no
cases) and nothing is receiving from c (deadlock).
package main
func main() {
// var c chan struct{}
c := make(chan struct{})
go func(x chan struct{}) { <-x }(c)
select {
case c <- f():
}
}
func f() struct{} {
println("f
Rpi1 model B requires setting GOARM=5 I believe.
On Sun, Aug 12, 2018, 8:29 AM Stephan Mühlstrasser <
stephan.muehlstras...@gmail.com> wrote:
> Hi,
>
> I'm developing my first Go program that is supposed to upload files into a
> Google Cloud Storage bucket from a Raspberry Pi 1. It uses the
>
Here's a sketch:
https://gist.github.com/9nut/11052587
On Wed, Oct 24, 2018 at 4:20 AM sakthi apr wrote:
> Hi,
>
> I'm developing web socket in golang that checks the database changes like
> new data insert.
>
> if the new record added in table user will get notified at client side.
>
>
why not just drop the select? i think the following is guaranteed because
putting things on rc has to succeed before putting true into dc:
package main
import (
"fmt"
)
func do(i int, rc chan<- int, dc chan<- bool) {
rc <- i
dc <- true
}
func main() {
worker := 10
rc := make(chan int, worker)
I think in the second case it is a reasonable error because the type alias
has not been defined yet while the anonymous struct is being declared.
On Sat, Dec 8, 2018, 9:33 AM Jan Mercl <0xj...@gmail.com wrote:
> This code compiles fine
>
> package main
>
> type node struct {
>
if the intent is to "print" the producer's output before the consumer's,
then this example still can't guarantee it; for example:
https://play.golang.org/p/2sb67Qf5IPd
the only synchronization guarantee is the moment of exchange on the channel.
On Fri, Jan 25, 2019 at 3:27 AM Wagner Riffel
I believe you only need one or the other; I assumed a use case like this:
https://play.golang.org/p/nSgyiXU87XN
On Sun, Apr 14, 2019 at 1:33 PM wrote:
> I found a good discussion in the FAQ that explains the problem clearly.
> https://golang.org/doc/faq#methods_on_values_or_pointers
>
> I
Do you mean like tcp half-close?
On Thu, May 30, 2019, 5:40 PM David Collier-Brown
wrote:
> My leaky brain has lost an old technique...
>
> Once upon a time, I would send an old copy of a program a SIGHUP, and it
> would shut down a socket listening on, for example, port 25 (SMTP). A newer
>
If your security depends on you not clicking on hyperlinks, you don't have
security.
On Fri, Jul 12, 2019, 10:39 AM Marvin Renich wrote:
> * Ali Hassan [190712 12:56]:
> >
> > If you curious about check out the link below
> >
>
Use Ivy?
On Sun, Apr 21, 2019, 8:36 PM Pat Farrell wrote:
> I have a logic error in my calculation. I am getting -2147483648 in an
> int32
> This sure looks a lot like MinInt32, but I can't seem to be able to tell,
> all my calculators want to blow up on -1 << 31
>
>
> I'm willing to bet
I don't know if it's documented or not. In the language reference you can
see the rules for method calls:
https://golang.org/ref/spec#Calls
https://golang.org/ref/spec#Method_sets
A hint might have been that object should have mutated, but it didn't.
It's in a class of errors that becomes
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
Googling for "NTLM http go client", the first result looks legit:
https://github.com/Azure/go-ntlmssp
On Tue, Oct 22, 2019 at 10:20 PM wrote:
> I'm trying emulate browser, open intranet url and get status code 401. How
> to open url with NTLM auth or login, pass? Thanks
>
> package main
>
Nice pause/resume. I'll need to remember this.
On Mon, Apr 3, 2023 at 3:14 AM Rob Pike wrote:
>
> Here's an excerpt from a piece of concurrent code I like, an unpublished
> interactive game of life. The select near the bottom has only two cases but
> it is perhaps instructive. I leave its
I think this qualifies:
mux9p, Fazlul Shahriar's port of Russ' 9pserve (plan9port)
https://github.com/fhs/mux9p/search?q=clientIO
I've used this dispatcher pattern:
func dispatcher(commands chan Cmd, reporting chan Stats, worker Worker) {
control = make(chan ...)
counts = make(chan ...)
On Mon, Apr 3, 2023 at 5:22 PM Nigel Tao wrote:
>
> On Tue, Apr 4, 2023 at 7:56 AM Skip Tavakkolian
> wrote:
> > mux9p, Fazlul Shahriar's port of Russ' 9pserve (plan9port)
> > https://github.com/fhs/mux9p/search?q=clientIO
> >
> > ...
> >
> >
23 matches
Mail list logo