4 ms·
I can understand why that inconsistency is frustrating. Similarly: typedObj, err = something.(type) typedObj = something.(type) obj = someMap[key]
by drivebyacct2 14y ago
I can understand why that inconsistency is frustrating. Similarly:
typedObj, err = something.(type)
typedObj = something.(type)
obj = someMap[key]
obj, ok = someMap[key]
- zeeboo 14y agoIt's typedObj, ok = something.(type) just like it is with maps, or any other ", ok" thing. http://play.golang.org/p/I-5kD88knC http://play.golang.org/p/I-5kD88knC
- drivebyacct2 14y agoOi vey, mea culpa.