News for hackers. Stuff that matters.
Re:Why I Don't Like Golang (2016) by X6S1x6Okd1st on Tuesday June 14, 2022 @12:53AM (#31734874)
You can explicitly declare that it implements an interface:

https://go.dev/play/p/VCcrSXT59w0

Re:Why I Don't Like Golang (2016) by benhoyt on Tuesday June 14, 2022 @01:10AM (#31734962)
I think you forgot the "hasA" type on the var line. Fixed: https://go.dev/play/p/0Amm7nd1Av4