{"id":160,"date":"2026-04-06T09:00:00","date_gmt":"2026-04-06T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=160"},"modified":"2026-10-10T21:20:40","modified_gmt":"2026-10-10T15:50:40","slug":"go-interfaces-examples","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/","title":{"rendered":"Go Interfaces Explained with Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go interfaces let different types share the same behaviour, so one function can work with all of them. In this post, you will learn to define interfaces, satisfy them and check what type sits inside one. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Interfaces are built on methods, so first make sure you are comfortable with <a href=\"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/\">structs and methods in Go<\/a>. Pointer receivers also matter here, which you learned in <a href=\"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/\">pointers in Go, copy vs share<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Go Interfaces?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An interface is a list of method names. Then any type that has all those methods automatically fits the interface. In other words, an interface describes what a type can do, not what it is.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a phone charger port. The charger does not care which brand of phone you plug in. It only cares that the phone has the right port. Similarly, Go interfaces only care that a type has the right methods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Defining and Using Go Interfaces<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Shape interface {\n\tArea() float64\n}\n\ntype Rectangle struct{ Width, Height float64 }\ntype Circle struct{ Radius float64 }\n\nfunc (r Rectangle) Area() float64 { return r.Width * r.Height }\nfunc (c Circle) Area() float64    { return math.Pi * c.Radius * c.Radius }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>Shape<\/code> interface asks for one method, <code>Area<\/code>, which returns a float64. Also, both Rectangle and Circle have that method. So both of them are Shapes, even though they hold very different fields.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Implicit Implementation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Notice that we never wrote &#8220;Rectangle implements Shape&#8221;. Unlike Java, Go has no <code>implements<\/code> keyword. Instead, a type satisfies an interface just by having the methods, which keeps your code loosely connected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">One Function, Many Types<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>func printArea(s Shape) {\n\tfmt.Printf(\"%.2f\\n\", s.Area())\n}\n\nprintArea(Rectangle{Width: 3, Height: 4}) \/\/ 12.00\nprintArea(Circle{Radius: 1})              \/\/ 3.14<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In short, the function accepts any Shape. Then, at run time, Go calls the right Area method for each type. The diagram below shows this flow.<\/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-interfaces-examples-diagram-1024x640.png\" alt=\"Go Interfaces diagram showing Rectangle and Circle both satisfying the Shape interface\" class=\"wp-image-162\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Rectangle and Circle both have Area(), so printArea accepts either one as a Shape.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Slice of Go Interfaces<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>shapes := &#91;]Shape{Rectangle{2, 5}, Circle{2}}\n\ntotal := 0.0\nfor _, s := range shapes {\n\ttotal += s.Area()\n}\nfmt.Printf(\"Total: %.2f\\n\", total) \/\/ Total: 22.57<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A slice of Go interfaces can hold many different types at once. As a result, one loop handles them all. This is how real programs treat payment methods, file stores or notification channels in the same way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Empty Interface: any<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An interface with no methods is satisfied by every type. Go names it <code>any<\/code>, and it is how <code>fmt.Println<\/code> accepts all kinds of values. However, you lose type safety with it, so use it only when you must.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Type Assertions<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>var s Shape = Circle{Radius: 3}\n\nif c, ok := s.(Circle); ok {\n\tfmt.Println(\"Radius:\", c.Radius) \/\/ Radius: 3\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A type assertion asks, &#8220;Is the value inside really a Circle?&#8221; The comma ok form returns false instead of crashing when the answer is no.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Type Switches<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>func describe(v any) {\n\tswitch t := v.(type) {\n\tcase int:\n\t\tfmt.Println(\"int:\", t)\n\tcase string:\n\t\tfmt.Println(\"string:\", t)\n\tdefault:\n\t\tfmt.Println(\"other\")\n\t}\n}\n\ndescribe(42)   \/\/ int: 42\ndescribe(\"hi\") \/\/ string: hi\ndescribe(3.5)  \/\/ other<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, a type switch checks several types in one go. It works just like the switch you learned earlier, only it compares types instead of values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Go Interfaces in the Standard Library<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Dog struct{}\n\nfunc (d Dog) String() string { return \"Dog says woof\" }\n\nfmt.Println(Dog{}) \/\/ Dog says woof<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>fmt<\/code> package looks for a <code>String()<\/code> method, which is the <code>fmt.Stringer<\/code> interface. For example, other famous ones are <code>error<\/code> and <code>io.Reader<\/code>. In fact, small interfaces with one or two methods are the Go way.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Interfaces<\/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>Square does not implement Shape (missing method Area)<\/td><td>The type lacks a method.<\/td><td>Add the missing method.<\/td><\/tr><tr><td>Rect does not implement Shape (method Area has pointer receiver)<\/td><td>Only *Rect has the method.<\/td><td>Pass &amp;Rect{} instead.<\/td><\/tr><tr><td>panic: interface conversion: main.Shape is main.Circle, not main.Rect<\/td><td>A plain assertion guessed the wrong type.<\/td><td>Use the comma ok form.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In particular, the pointer receiver error confuses many beginners. Interviewers love it too, so try my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a> next.<\/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\/tour\/methods\/9\">A Tour of Go: Interfaces<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/ref\/spec#Interface_types\">Go spec: Interface types<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/doc\/effective_go#interfaces\">Effective Go: Interfaces<\/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 interfaces list methods, and any type with those methods fits.<\/li>\n\n\n\n<li>There is no implements keyword, because matching is automatic.<\/li>\n\n\n\n<li>One function or slice can work with many types through an interface.<\/li>\n\n\n\n<li>Use v.(Type) with ok, or a type switch, to find the real type.<\/li>\n\n\n\n<li>Keep interfaces small, like Stringer and error.<\/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\">You just met the error interface. Next, we will use it properly and learn how Go handles errors without exceptions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Error Handling Explained for Beginners<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go interfaces let different types share the same behaviour, so one function can work with all of them. In this post, you will learn&hellip;<\/p>\n","protected":false},"author":1,"featured_media":198,"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":[33,11,23,21],"swapz_series":[],"class_list":["post-160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-interfaces","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 Interfaces Explained with Simple Examples<\/title>\n<meta name=\"description\" content=\"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.\" \/>\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-interfaces-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Interfaces Explained with Simple Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-06T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-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-interfaces-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Interfaces Explained with Examples\",\"datePublished\":\"2026-04-06T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/\"},\"wordCount\":664,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-interfaces-examples-featured-1.png\",\"keywords\":[\"Go Interfaces\",\"Go Lang\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/\",\"name\":\"Go Interfaces Explained with Simple Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-interfaces-examples-featured-1.png\",\"datePublished\":\"2026-04-06T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:40+00:00\",\"description\":\"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-interfaces-examples-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-interfaces-examples-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Interfaces featured image: cards showing an interface, a type assertion and a type switch\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-interfaces-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Interfaces Explained with Examples\"}]},{\"@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 Interfaces Explained with Simple Examples","description":"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.","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-interfaces-examples\/","og_locale":"en_US","og_type":"article","og_title":"Go Interfaces Explained with Simple Examples","og_description":"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.","og_url":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-06T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:40+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-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-interfaces-examples\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Interfaces Explained with Examples","datePublished":"2026-04-06T03:30:00+00:00","dateModified":"2026-10-10T15:50:40+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/"},"wordCount":664,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-featured-1.png","keywords":["Go Interfaces","Go Lang","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/","url":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/","name":"Go Interfaces Explained with Simple Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-featured-1.png","datePublished":"2026-04-06T03:30:00+00:00","dateModified":"2026-10-10T15:50:40+00:00","description":"Learn Go interfaces with simple examples: define and satisfy interfaces, use any, type assertions, type switches and avoid common mistakes.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-interfaces-examples-featured-1.png","width":1200,"height":630,"caption":"Go Interfaces featured image: cards showing an interface, a type assertion and a type switch"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-interfaces-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Interfaces Explained with Examples"}]},{"@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\/160","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=160"}],"version-history":[{"count":2,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":164,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/160\/revisions\/164"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/198"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=160"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}