{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fc4se.hatenablog.com%2Fentry%2F2013%2F01%2F19%2F173347\" title=\"#golang \u00a756 Exercise: Errors - c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"url":"https://c4se.hatenablog.com/entry/2013/01/19/173347","categories":["Programming","Golang"],"height":"190","author_name":"Kureduki_Maari","provider_name":"Hatena Blog","width":"100%","blog_url":"https://c4se.hatenablog.com/","title":"#golang \u00a756 Exercise: Errors","blog_title":"c4se\u8a18\uff1a\u3055\u3063\u3061\u3083\u3093\u3067\u3059\u3088\u2606","description":"A Tour of Go chapter 56 Exercise: Errors Copy your Sqrt function from the earlier exercises and modify it to return an error value. Sqrt should return a non-nil error value when given a negative number, as it doesn't support complex numbers. Create a new type type ErrNegativeSqrt float64 and make it\u2026","provider_url":"https://hatena.blog","version":"1.0","published":"2013-01-19 17:33:47","author_url":"https://blog.hatena.ne.jp/Kureduki_Maari/","type":"rich"}