[go-nuts] Re: Why is the reason that the flame graph in go pprof rotated 180 degrees?

2023-06-13 Thread a2800276
180 degrees in respect to what? ;) I'd argue callgraphs have no "natural" orientation, top to bottom is as good as bottom to top or left to right (right to left feels off to me, but I read left to right, so I assume that's just a matter of familiarity) On Monday, 12 June 2023 at 14:26:30 UTC+2

[go-nuts] Re: Short Variable Declarations Are Oversold

2023-04-24 Thread a2800276
import “os” func main() { file, _ := os.Open(os.Args[1]) myfunc(file) } func myfunc(file ???) { } What type should I use to declare “file” in the parameter list for myfunc()? This argument doesn't seem logical to me. If I fully declare `file` in this case, I also have to know

[go-nuts] Re: Quick poll: Which of these declarative UI trees looks the most legible to you?

2022-06-08 Thread a2800276
To be honest: on first glance, they all look identical to me apart from the missing AddClass statements in the last example. Would it be possible to have some examples with less subtle differences? ¯\_(ツ)_/¯ sorry -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] What is the point of gzip Reader.Close?

2021-06-23 Thread a2800276
> > So I think it can be safe to omit > using gzip Reader Close in the general case. > In the general case it's also safe to ignore all errors, because by definition they only occur in exceptional conditions . More practically though, most programmers would probably prefer to follow

[go-nuts] Re: [ANN] New german translations

2021-03-12 Thread a2800276
"Kode" really seems nonstandard to me. It really pops out. I'd definitely spell it "Code" in German and even then it seems like colloquial usage. I'd prefer Quellcode or Quelltext or Programm. "Kode aus einem externen Paket rufen" should really be "aufrufen" no matter how you feel about "Kode"

[go-nuts] Re: crypto/tls/generate_cert.go: Should it be used? And how can it be used?

2020-11-30 Thread a2800276
On Sunday, 29 November 2020 at 22:09:24 UTC+1 Jeroen N. Witmond wrote: > > In trying to find out how to do this I came across (closed) > https://github.com/golang/go/issues/19900 As a result I found another way > to invoke it: go run `locate generate_cert.go` host 127.0.0.1 > --rsa-bits=2048

[go-nuts] Re: pure-go implementation of sqlite

2020-06-16 Thread a2800276
> > is there (or is somebody working on) a pure-go implementation of sqlite ? > or at least a subset of it, to be able to read sqlite files ? > > -s > > PS: I know about the (by now) canonical implementations > (mattn/go-sqlite and others) but a completely go-based solution would >

[go-nuts] Re: crypto data types

2020-01-14 Thread a2800276
> > > looking for guidance on how to get an rsa.PublicKey from id_rsa.pub > seems like I can parse the id_rsa.pub contents and get a ssh.PublicKey but > how do I transform this into an rsa.PublicKey > i need the coersion in order to use other support services. > > Please consider whether this is