Code -> {bricks}
Published in

Code -> {bricks}

One of the first striking observations of a beginner in Go is the error handling. With Go, the if checks can be a little daunting and not a very elegant option coming from Java. The try catch-es appear to still be a valid construct.

Here’s an example,

nbytes, err := io.Copy(ioutil.Discard, resp.Body)
if (err != nil ) {
ch <- fmt.Sprintf(“while reading %s: %v “, url, err)




Code away blog for anyone contributing to java, scala, go or plain ol’ javascript! ( yes typescript works)


Take the Leap! 10 Steps to Building Your Personal Blog With AWS + Hugo | Ready, Set, Cloud!

The journey of creating a Water Irrigation System

Code Review Best Practices for 10x Engineers

Why Startups Prefer to React Native for Mobile App Development?

Resolving CORS errors in spring

How to Successfully Outsource Software Development Projects

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Asha Somayajula

Asha Somayajula

More from Medium

Why use 🔑 Insrt Finance

How To Manage Your Node Version on a UNIX-based system

T1 Cuzz LCK Fanterview with lckofficial, 2021.03.22

How to transfer tokens between ethereum networks, binance smart chain and moonbeam network via dex…