[go-nuts] Re: are Go generics more like C++ or more like Java?

2022-03-17 Thread Ali Altun
Go - FAQ: How do generics in Go compare to generics in other languages? https://go.dev/doc/faq#generics_comparison On Wednesday, February 23, 2022 at 9:41:14 PM UTC+1 Jason E. Aten wrote: > Back in 2009, Russ wrote a blog on generics, talking about the tradeoffs > in providing generics: > >

Re: [go-nuts] The Go code formatter

2018-04-18 Thread Ali Altun
A lof of similar situation, this kind of formating approach is needed. For example, the unformatted (or more precisely the manual formatted part) is mode readable for me. It may not be objective. // Before Go gofmt'ed aTempl := []map[string]interface{}{ > {"fname": "id", "

Re: [go-nuts] The Go code formatter

2018-04-18 Thread Ali Altun
uot;: "atarih", "label": "Atarih", "boyut4": "05"}, {"fname": "kimlk", "label": "Kimlik", "boyut4": "03"}, {"fname": "perso", "label": &qu

[go-nuts] The Go code formatter

2018-04-18 Thread Ali Altun
There is a code part in the https://golang.org/pkg/sort/#example_ The Go code formatter doesn't change this code. func (a ByAge) Len() int { return len(a) } > func (a ByAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] } > func (a ByAge) Less(i, j int) bool { return a[i].Age < a[j].Age } > Similarl

Re: [go-nuts] pointer value not updated when called as interface?

2016-11-21 Thread Ali Altun
> resp.(*pointer). > Now that we have a pointer to the string, we set it's value as > *strPtr="string value". > > On Monday, 21 November 2016 22:56:29 UTC+5:30, Ali Altun wrote: >> >> >> Whats is the meaning of *resp.(*string) = "abcd" . I ha

Re: [go-nuts] pointer value not updated when called as interface?

2016-11-21 Thread Ali Altun
Whats is the meaning of *resp.(*string) = "abcd" . I have not seen this before. -- 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...@goog