{"id":165,"date":"2026-04-07T09:00:00","date_gmt":"2026-04-07T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=165"},"modified":"2026-10-10T21:20:41","modified_gmt":"2026-10-10T15:50:41","slug":"go-error-handling-guide","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/","title":{"rendered":"Go Error Handling Explained for Beginners"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go error handling is simple: functions return an error value, and you check it right away. In this post, you will learn the if err != nil pattern, how to add context to errors and how to check them safely. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You have already seen errors returned as a second value in <a href=\"https:\/\/smitabharat.com\/blog\/go-functions-beginners-guide\/\">writing and calling functions in Go<\/a>. Also, <code>error<\/code> is just an interface, which you met in <a href=\"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/\">interfaces in Go with examples<\/a>. Now we will put both ideas together.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is Go Error Handling?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many languages throw exceptions that jump far away from where the problem happened. Go does not. Instead, an error is a normal value that a function returns, so you deal with it on the very next line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a delivery app. If the restaurant is closed, the app tells you immediately rather than failing silently later. In the same way, Go error handling makes every failure visible right where it happens.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The if err != nil Pattern<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>n, err := strconv.Atoi(\"abc\")\nif err != nil {\n\tfmt.Println(\"Error:\", err)\n\treturn\n}\nfmt.Println(n)\n\/\/ Error: strconv.Atoi: parsing \"abc\": invalid syntax<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The function returns a value and an error. When the error is <code>nil<\/code>, everything worked. Otherwise, you handle it first and usually return early, so the happy path stays at the left edge of your code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Returning Errors from Your Functions<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>var ErrNotFound = errors.New(\"user not found\")\n\nfunc findUser(id int) (string, error) {\n\tif id != 1 {\n\t\treturn \"\", ErrNotFound\n\t}\n\treturn \"Asha\", nil\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In Go error handling, use <code>errors.New<\/code> to create a simple error message. By convention, the error is always the last return value. Also, error messages start with a lowercase letter and have no full stop.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Go Error Handling with Wrapped Errors<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>func loadUser(id int) (string, error) {\n\tname, err := findUser(id)\n\tif err != nil {\n\t\treturn \"\", fmt.Errorf(\"loadUser %d: %w\", id, err)\n\t}\n\treturn name, nil\n}\n\n_, err := loadUser(7)\nfmt.Println(err) \/\/ loadUser 7: user not found<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A bare &#8220;user not found&#8221; does not say where it came from. So <code>fmt.Errorf<\/code> with the <code>%w<\/code> verb wraps the original error inside a new message. As a result, the final error reads like a trail of breadcrumbs.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-diagram-1024x640.png\" alt=\"Go Error Handling diagram showing an error wrapped through two layers and found again with errors.Is\" class=\"wp-image-167\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Each layer adds context with %w, and errors.Is can still find the original ErrNotFound inside.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Checking Errors with errors.Is and errors.As<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Sentinel Errors and errors.Is<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>_, err := loadUser(7)\nfmt.Println(errors.Is(err, ErrNotFound)) \/\/ true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A sentinel error is a fixed error value, like <code>ErrNotFound<\/code>, that callers can test for. Because the error is wrapped, a plain <code>==<\/code> check would fail. Instead, <code>errors.Is<\/code> looks through every layer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Custom Error Types and errors.As<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type AgeError struct{ Age int }\n\nfunc (e *AgeError) Error() string {\n\treturn fmt.Sprintf(\"invalid age %d\", e.Age)\n}\n\nerr := setAge(-5) \/\/ returns &amp;AgeError{Age: -5}\n\nvar ae *AgeError\nif errors.As(err, &amp;ae) {\n\tfmt.Println(\"Bad age:\", ae.Age) \/\/ Bad age: -5\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Any type with an <code>Error() string<\/code> method is an error. Then <code>errors.As<\/code> finds that type in the chain and gives you its fields. This is handy when callers need details, such as an HTTP status code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Panic and Recover in Go Error Handling<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>func safeDivide(a, b int) (result int, err error) {\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\terr = fmt.Errorf(\"recovered: %v\", r)\n\t\t}\n\t}()\n\treturn a \/ b, nil\n}\n\n_, err := safeDivide(10, 0)\nfmt.Println(err) \/\/ recovered: runtime error: integer divide by zero<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A panic stops the program for bugs that should never happen. However, <code>recover<\/code> inside a deferred function can catch it. Use this rarely, for example to keep a web server alive after one bad request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Go Error Handling Best Practices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check every error right after the call.<\/li>\n\n\n\n<li>Add context with fmt.Errorf and %w as errors move up.<\/li>\n\n\n\n<li>Compare with errors.Is and errors.As, never with plain text.<\/li>\n\n\n\n<li>Handle an error once: either log it or return it, not both.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes in Go Error Handling<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Error you see<\/th><th>Why it happens<\/th><th>How to fix it<\/th><\/tr><\/thead><tbody><tr><td>declared and not used: err<\/td><td>The code never checked err.<\/td><td>Add if err != nil.<\/td><\/tr><tr><td>errors.Is returns false<\/td><td>The code used %v, not %w.<\/td><td>Wrap with %w.<\/td><\/tr><tr><td>Silent wrong data<\/td><td>The error went to _ by mistake.<\/td><td>Only ignore errors on purpose.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The %v versus %w mix-up is easy to miss, since both print the same text. Error questions also appear in my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a>, so test yourself there.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These pages come straight from the Go team, so they are always accurate and up to date.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/go.dev\/blog\/error-handling-and-go\">Go blog: Error handling and Go<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/blog\/go1.13-errors\">Go blog: Working with errors in Go 1.13<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pkg.go.dev\/errors\">errors package documentation<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go error handling treats errors as normal return values.<\/li>\n\n\n\n<li>Check if err != nil right after each call and return early.<\/li>\n\n\n\n<li>Wrap errors with fmt.Errorf and %w to add context.<\/li>\n\n\n\n<li>Use errors.Is for fixed errors and errors.As for custom types.<\/li>\n\n\n\n<li>Save panic and recover for real bugs, not normal failures.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s Next?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Your code is getting bigger. Next, we will organise it into packages and modules, so each part lives in its own folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Modules and Packages Explained Simply<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go error handling is simple: functions return an error value, and you check it right away. In this post, you will learn the if&hellip;<\/p>\n","protected":false},"author":1,"featured_media":199,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[15],"tags":[34,11,23,21],"swapz_series":[],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-error-handling","tag-go-lang","tag-go-tutorial","tag-golang-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Go Error Handling Explained for Beginners<\/title>\n<meta name=\"description\" content=\"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Error Handling Explained for Beginners\" \/>\n<meta property=\"og:description\" content=\"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-07T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Smita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Smita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Error Handling Explained for Beginners\",\"datePublished\":\"2026-04-07T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/\"},\"wordCount\":686,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-error-handling-guide-featured-1.png\",\"keywords\":[\"Go Error Handling\",\"Go Lang\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/\",\"name\":\"Go Error Handling Explained for Beginners\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-error-handling-guide-featured-1.png\",\"datePublished\":\"2026-04-07T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:41+00:00\",\"description\":\"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-error-handling-guide-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-error-handling-guide-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Error Handling featured image: cards showing err != nil, %w wrapping and errors.Is\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-error-handling-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Error Handling Explained for Beginners\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\",\"name\":\"Smita Bharat Blog\",\"description\":\"Golang &amp; Backend Development Tutorials and Interview Questions\",\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"alternateName\":\"Smita Bharat\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\",\"name\":\"Smita\",\"logo\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/smitabharat.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Go Error Handling Explained for Beginners","description":"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/","og_locale":"en_US","og_type":"article","og_title":"Go Error Handling Explained for Beginners","og_description":"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.","og_url":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-07T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:41+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png","type":"image\/png"}],"author":"Smita","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Smita","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Error Handling Explained for Beginners","datePublished":"2026-04-07T03:30:00+00:00","dateModified":"2026-10-10T15:50:41+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/"},"wordCount":686,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png","keywords":["Go Error Handling","Go Lang","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/","url":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/","name":"Go Error Handling Explained for Beginners","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png","datePublished":"2026-04-07T03:30:00+00:00","dateModified":"2026-10-10T15:50:41+00:00","description":"Learn Go error handling with simple examples: if err != nil, wrapping with %w, Is and As checks, custom types, panic and recover.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-error-handling-guide-featured-1.png","width":1200,"height":630,"caption":"Go Error Handling featured image: cards showing err != nil, %w wrapping and errors.Is"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-error-handling-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Error Handling Explained for Beginners"}]},{"@type":"WebSite","@id":"https:\/\/smitabharat.com\/blog\/#website","url":"https:\/\/smitabharat.com\/blog\/","name":"Smita Bharat Blog","description":"Golang &amp; Backend Development Tutorials and Interview Questions","publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"alternateName":"Smita Bharat","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smitabharat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339","name":"Smita","logo":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/smitabharat.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/165\/revisions\/168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/199"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=165"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}