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:
>
>
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", "
uot;: "atarih", "label": "Atarih", "boyut4": "05"},
{"fname": "kimlk", "label": "Kimlik", "boyut4": "03"},
{"fname": "perso", "label": &qu
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
> 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
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