[go-nuts] Is this a bug ?

2021-06-03 Thread Jamil Djadala
https://groups.google.com/g/golang-nuts package main import ( "fmt" ) func main() { const aa int = 0 var a int fmt.Println(float64(1

Re: [go-nuts] I think I found a bug?

2021-05-26 Thread Jamil Djadala
minimally changed code that works: https://play.golang.org/p/Tcfw_EC8jMp On Thursday, May 27, 2021 at 4:11:40 AM UTC+3 johnfor...@gmail.com wrote: > Here’s the code. It might be > possible to come up with a shorter reproducer, but I’m not sure where to

Re: [go-nuts] keep just 2 decimal places in a float64

2020-01-25 Thread Jamil Djadala
. > Suggestions? Playground examples appreciated. you can use int types: https://play.golang.org/p/qLnynemd3S1 -- Jamil Djadala -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai

Re: [go-nuts] querying whether the go command would run in module mode

2019-12-09 Thread Jamil Djadala
On Mon, 09 Dec 2019 19:57:48 +1030 Dan Kortschak wrote: > Thanks. > > When you're not in a module it returns /dev/null on linux. I don't > suppose this is platform independent? Hi, This command: go env GOMOD returns 1 emty line, i dont see any /dev/null ? -- Jamil Djadala --

Re: [go-nuts] Is anyone aware of a blocking ring buffer implementation?

2019-11-21 Thread Jamil Djadala
: The data is copied directly from the Write to the corresponding Read (or Reads); there is no internal buffering and looking in implementation, it seems that internally Pipe is using channel. -- Jamil Djadala -- You received this message because you are subscribed to the Google Groups "g

Re: [go-nuts] cgo memory fragmetation?

2019-10-07 Thread Jamil Djadala
> header.Data = uintptr(data) > header.Len = size > header.Cap = size > } > > BR, > Miha > Hi, can you try to run your program with GOGC=10 environment ? -- Jamil Djadala -- You received this message because you are subscribed to the Google Groups "go

Re: [go-nuts] Re: methods on C types

2019-04-18 Thread Jamil Djadala
On Thu, 18 Apr 2019 07:44:53 -0700 (PDT) peterGo wrote: > Cgo translates C types into equivalent unexported Go types. > https://golang.org/cmd/cgo/ But then, definition of new methods on non-local types is forbidden. Why it is enabled for cgo types ? -- Jamil Djadala -- You re

Re: [go-nuts] golang tcp transport just like nc

2018-03-08 Thread Jamil Djadala
rm -rf /tmp/2 /tmp/4 > > > > > > ./nc serer < /tmp/1 > /tmp/2 > > > > ./nc < /tmp/3 > /tmp/4 > > > > please help me how to solve this and works like nc > > > example code > > https://gist.github.com/suconghou/a1

Re: [go-nuts] printing a struct fields that implements an error interface

2018-02-18 Thread Jamil Djadala
> > Thanks, > Joe > Just use fmt.Print(v.String()) instead of fmt.Print(v) -- Jamil Djadala -- 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 e