wishing him and everyone else injured a speedy recovery
wishing him and everyone else injured a speedy recovery
the formal name for these appear to be "methods" where the `(twln *Thingy)` defines a "receiver"
go.dev/tour/methods/1
the formal name for these appear to be "methods" where the `(twln *Thingy)` defines a "receiver"
go.dev/tour/methods/1
and yea, the signature syntax is a bit kludgey but my main gripe is that naming it `this` or `self` poses a lint warning :\
and yea, the signature syntax is a bit kludgey but my main gripe is that naming it `this` or `self` poses a lint warning :\
instead of `this` or `self`, the convention in Go is to use some sort of shortening of the type name itself (continued)
instead of `this` or `self`, the convention in Go is to use some sort of shortening of the type name itself (continued)
but it is a bit annoying and for some reason the documented steps for disabling the warning didn't work for me
but it is a bit annoying and for some reason the documented steps for disabling the warning didn't work for me
a quick hyperfine benchmark tells me my code takes about 5.5 seconds to print the result
a quick hyperfine benchmark tells me my code takes about 5.5 seconds to print the result