Show newer

@lupyuen I hadn't seen the original so i just went and looked it up. The original's pretty good but the remix is even better - it's spectacular! Thankyou for sharing

"The Analog Thing (THAT) is a high-quality, low-cost, open-source, and not-for-profit cutting-edge analog computer"

the-analog-thing.org/

"any foreigner who traveled to Thailand in the last decade might have had their information exposed in the incident"

comparitech.com/blog/informati

@velartrill
it's a type assertion, because the values of the map are interface{}. the empty interface is fulfilled by _any_ type. you usually need to do type asserts if you want to do _more_ than is defined in the interface. you need the concrete type for that.

if you don't want to have a panic if the type doesn't match, you use the form with two return values. usually if the input is controlled by yourself you want panics because a non matching type is clearly a bug then. for parsing things like irregular JSON it's handy to have the two valued form. an alternative, especially if you have a set of possible types are type switches: tour.golang.org/methods/16

@lupyuen

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.