{"id":156,"date":"2026-04-05T09:00:00","date_gmt":"2026-04-05T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=156"},"modified":"2026-10-10T21:20:39","modified_gmt":"2026-10-10T15:50:39","slug":"go-pointers-explained","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/","title":{"rendered":"Go Pointers Explained Simply"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go pointers let you share a value instead of copying it, so a function can change the original data. In this post, you will learn the two pointer symbols, when Go copies data and when it shares it. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You already met pointers briefly in <a href=\"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/\">structs and methods in Go<\/a>, where a pointer receiver changed a bank balance. Now we will look at them properly. You will also pass pointers into functions, so a quick look at <a href=\"https:\/\/smitabharat.com\/blog\/go-functions-beginners-guide\/\">writing and calling functions in Go<\/a> will help.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Go Pointers?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every variable lives somewhere in your computer&#8217;s memory. That location has an address, much like a house has a street address. A pointer is simply a variable that stores this address.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a shared document link. Instead of emailing a copy of a file, you send the link, and everyone edits the same file. Go pointers work the same way, because they point to one value that many parts of your code can reach.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Two Pointer Symbols: &amp; and *<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Getting an Address with &amp;<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>age := 30\np := &amp;age\n\nfmt.Printf(\"%T %T\\n\", age, p) \/\/ int *int\nfmt.Println(p != nil)          \/\/ true<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&amp;<\/code> sign gives you the address of a variable. So <code>p<\/code> now holds where <code>age<\/code> lives. Its type is <code>*int<\/code>, which you read as &#8220;pointer to int&#8221;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reading and Changing with *<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>fmt.Println(*p) \/\/ 30\n\n*p = 31\nfmt.Println(age) \/\/ 31<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Putting <code>*<\/code> before a pointer follows the address to the real value. This step is called dereferencing. As a result, <code>*p = 31<\/code> changes <code>age<\/code> itself, even though we never wrote <code>age<\/code> on that line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Go Pointers Matter: Copy vs Share<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">By default, Go passes a copy of every value into a function. So the function can change its copy, but the original stays the same. A pointer changes that rule, as the diagram below shows.<\/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-pointers-explained-diagram-1024x640.png\" alt=\"Go Pointers diagram showing a copy passed to a function next to a pointer that changes the original\" class=\"wp-image-158\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>A plain value goes in as a copy, while a pointer lets the function reach and change the original x.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Passing a Pointer to a Function<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>func double(n int) {\n\tn = n * 2\n}\n\nfunc doublePtr(n *int) {\n\t*n = *n * 2\n}\n\nx := 5\ndouble(x)\nfmt.Println(x) \/\/ 5\n\ndoublePtr(&amp;x)\nfmt.Println(x) \/\/ 10<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first function doubles a copy, so <code>x<\/code> stays 5. The second receives the address with <code>&amp;x<\/code>, and then it changes the real value. In short, pass a pointer whenever a function must update your variable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Go Pointers to Structs<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type User struct {\n\tName string\n}\n\nfunc rename(u *User) {\n\tu.Name = \"Ravi\"\n}\n\nu := User{Name: \"Asha\"}\nrename(&amp;u)\nfmt.Println(u.Name) \/\/ Ravi<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">With structs, Go lets you write <code>u.Name<\/code> instead of <code>(*u).Name<\/code>. Also, passing a pointer avoids copying a large struct, which saves memory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Nil Pointers and new<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>var q *int\nfmt.Println(q == nil, q) \/\/ true &lt;nil&gt;\n\nn := new(int)\n*n = 7\nfmt.Println(*n) \/\/ 7<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Go pointers that point nowhere have the zero value <code>nil<\/code>. Meanwhile, the built-in <code>new<\/code> function creates a zero value and returns its address. You will use it rarely, since <code>&amp;Type{}<\/code> is more common.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go also lets a function return the address of a local variable. For example, <code>return &amp;c<\/code> is completely safe, because Go keeps that value alive for as long as something points to it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When to Use Go Pointers<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Use a pointer when<\/th><th>Use a plain value when<\/th><\/tr><\/thead><tbody><tr><td>A function must change the original<\/td><td>The function only reads data<\/td><\/tr><tr><td>The struct is large<\/td><td>The type is small, like int or bool<\/td><\/tr><tr><td>&#8220;No value&#8221; must be possible (nil)<\/td><td>A zero value is fine<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Slices and maps already share their data behind the scenes. So you rarely need a pointer to a slice or a map, as you saw in <a href=\"https:\/\/smitabharat.com\/blog\/go-slices-arrays-explained\/\">slices and arrays in Go<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Pointers<\/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>panic: runtime error: invalid memory address or nil pointer dereference<\/td><td>The code used *p while p was nil.<\/td><td>Check p != nil first.<\/td><\/tr><tr><td>Change has no effect<\/td><td>The function got a copy.<\/td><td>Pass &amp;x and take *int.<\/td><\/tr><tr><td>cannot use x (variable of type int) as *int value<\/td><td>The &amp; sign is missing.<\/td><td>Call doublePtr(&amp;x).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The nil pointer panic is the most common crash in Go programs. Pointer questions also show up often in my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a>, so practise them 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\/tour\/moretypes\/1\">A Tour of Go: Pointers<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/ref\/spec#Pointer_types\">Go spec: Pointer types<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/doc\/faq#pass_by_value\">Go FAQ: When are function parameters passed by value?<\/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 pointers store the address of a value instead of the value itself.<\/li>\n\n\n\n<li>Use &amp; to get an address and * to read or change the value.<\/li>\n\n\n\n<li>Go passes copies by default, so pass a pointer to change the original.<\/li>\n\n\n\n<li>A pointer with no target is nil, so check it before you use it.<\/li>\n\n\n\n<li>Slices and maps already share data, so they rarely need pointers.<\/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\">Now you know how Go shares data. Next, we will learn interfaces, which let different types share the same behaviour.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Interfaces Explained with Examples<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go pointers let you share a value instead of copying it, so a function can change the original data. In this post, you will&hellip;<\/p>\n","protected":false},"author":1,"featured_media":197,"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":[11,32,23,21],"swapz_series":[],"class_list":["post-156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-lang","tag-go-pointers","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 Pointers Explained Simply with Examples<\/title>\n<meta name=\"description\" content=\"Learn Go pointers with simple examples: the &amp; and * symbols, copy vs share, structs, nil values and the mistakes beginners make.\" \/>\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-pointers-explained\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Pointers Explained Simply with Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go pointers with simple examples: the &amp; and * symbols, copy vs share, structs, nil values and the mistakes beginners make.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-05T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-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-pointers-explained\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Pointers Explained Simply\",\"datePublished\":\"2026-04-05T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/\"},\"wordCount\":750,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-pointers-explained-featured-1.png\",\"keywords\":[\"Go Lang\",\"Go Pointers\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/\",\"name\":\"Go Pointers Explained Simply with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-pointers-explained-featured-1.png\",\"datePublished\":\"2026-04-05T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:39+00:00\",\"description\":\"Learn Go pointers with simple examples: the & and * symbols, copy vs share, structs, nil values and the mistakes beginners make.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-pointers-explained-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-pointers-explained-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Pointers featured image: cards showing the & and * symbols and a nil pointer\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-pointers-explained\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Pointers Explained Simply\"}]},{\"@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 Pointers Explained Simply with Examples","description":"Learn Go pointers with simple examples: the & and * symbols, copy vs share, structs, nil values and the mistakes beginners make.","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-pointers-explained\/","og_locale":"en_US","og_type":"article","og_title":"Go Pointers Explained Simply with Examples","og_description":"Learn Go pointers with simple examples: the & and * symbols, copy vs share, structs, nil values and the mistakes beginners make.","og_url":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-05T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:39+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-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-pointers-explained\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Pointers Explained Simply","datePublished":"2026-04-05T03:30:00+00:00","dateModified":"2026-10-10T15:50:39+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/"},"wordCount":750,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-featured-1.png","keywords":["Go Lang","Go Pointers","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/","url":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/","name":"Go Pointers Explained Simply with Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-featured-1.png","datePublished":"2026-04-05T03:30:00+00:00","dateModified":"2026-10-10T15:50:39+00:00","description":"Learn Go pointers with simple examples: the & and * symbols, copy vs share, structs, nil values and the mistakes beginners make.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-pointers-explained\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-pointers-explained-featured-1.png","width":1200,"height":630,"caption":"Go Pointers featured image: cards showing the & and * symbols and a nil pointer"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-pointers-explained\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Pointers Explained Simply"}]},{"@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\/156","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=156"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions\/159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/197"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=156"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}