{"id":152,"date":"2026-04-04T09:00:00","date_gmt":"2026-04-04T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=152"},"modified":"2026-10-10T21:20:39","modified_gmt":"2026-10-10T15:50:39","slug":"go-structs-beginners-guide","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/","title":{"rendered":"Go Structs Explained for Beginners"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go structs let you group related data into one custom type, like a student with a name, age and grade. In this post, you will learn to define structs, create values, add methods and turn them into JSON. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So far, a <a href=\"https:\/\/smitabharat.com\/blog\/go-maps-examples\/\">map in Go<\/a> or a <a href=\"https:\/\/smitabharat.com\/blog\/go-slices-arrays-explained\/\">slice in Go<\/a> held many values of one type. Structs are different, because each field can have its own type. You will also attach functions to them, 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 Structs?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A struct is a collection of named fields. A field is one piece of data with its own name and type. Think of a bank form with boxes for name, age and address. Each box holds a different kind of data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go has no classes like Java. Instead, Go structs plus methods do the same job in a simpler way. As a result, almost every real Go program uses them to model users, orders or products.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Defining and Creating Go Structs<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Student struct {\n\tName  string\n\tAge   int\n\tGrade string\n}\n\ns1 := Student{Name: \"Asha\", Age: 20, Grade: \"A\"}\nfmt.Println(s1.Name, s1.Age) \/\/ Asha 20<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>type<\/code> keyword creates a new type called <code>Student<\/code>. Think of it as a blueprint. Then <code>Student{...}<\/code> builds a real value from that blueprint, with each field named for clarity.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Accessing and Changing Fields<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>s1.Age = 21\nfmt.Println(s1) \/\/ {Asha 21 A}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use a dot to read or change any field in Go structs. Also, field names that start with a capital letter are visible to other packages, while lowercase names stay private.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Zero Values in Go Structs<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>var s2 Student\nfmt.Printf(\"%+v\\n\", s2) \/\/ {Name: Age:0 Grade:}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A struct you never fill still works. Each field simply gets its zero value, so text is empty and numbers are 0. The <code>%+v<\/code> verb prints field names too, which helps a lot when you debug.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Pointers to Structs<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>p := &amp;s1\np.Grade = \"A+\"\nfmt.Println(s1.Grade) \/\/ A+<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A pointer holds the address of a value instead of a copy of it. The <code>&amp;<\/code> sign gets that address. So changing <code>p.Grade<\/code> changes <code>s1<\/code> itself, and Go lets you use the dot without any extra symbols.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding Methods to Go Structs<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Account struct {\n\tOwner   string\n\tBalance float64\n}\n\nfunc (a Account) Show() {\n\tfmt.Println(a.Owner, \"has\", a.Balance)\n}\n\nfunc (a *Account) Deposit(amount float64) {\n\ta.Balance += amount\n}\n\nacc := Account{Owner: \"Ravi\", Balance: 100}\nacc.Deposit(50)\nacc.Show() \/\/ Ravi has 150<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A method is a function tied to a type. The part in brackets before the name, like <code>(a Account)<\/code>, is called the receiver. It tells Go which type owns the method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Value vs Pointer Receivers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Show uses a value receiver, so it gets a copy and only reads data. Deposit uses a pointer receiver, <code>*Account<\/code>, so it can change the original balance. In short, use a pointer receiver whenever a method must update the struct.<\/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-structs-beginners-guide-diagram-1024x640.png\" alt=\"Go Structs diagram showing a struct type, a value and value versus pointer receivers\" class=\"wp-image-154\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>The type is the blueprint, acc is the value, and only the pointer receiver can change it.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Embedding One Struct in Another<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Address struct {\n\tCity string\n}\n\ntype Employee struct {\n\tName string\n\tAddress\n}\n\ne := Employee{Name: \"Meera\", Address: Address{City: \"Pune\"}}\nfmt.Println(e.City) \/\/ Pune<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When you list a type without a field name, Go embeds it. Then its fields act as if they belong to the outer struct, so <code>e.City<\/code> works directly. This is how Go reuses code without inheritance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Struct Tags and JSON<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>type Product struct {\n\tName  string  `json:\"name\"`\n\tPrice float64 `json:\"price\"`\n}\n\nb, _ := json.Marshal(Product{Name: \"Pen\", Price: 20})\nfmt.Println(string(b)) \/\/ {\"name\":\"Pen\",\"price\":20}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The text in backticks is a struct tag. Here it tells the <code>encoding\/json<\/code> package which name to use for each field. Later in this series, you will use this to build real APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Structs<\/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>unknown field Nme in struct literal of type Student<\/td><td>The field name has a typo.<\/td><td>Match the name exactly.<\/td><\/tr><tr><td>too few values in struct literal of type Student<\/td><td>The literal skips names and misses some values.<\/td><td>Use Name: value pairs.<\/td><\/tr><tr><td>Method change is lost<\/td><td>The method has a value receiver.<\/td><td>Change it to a pointer receiver.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The lost change is the trickiest one, because Go shows no error at all. Receiver questions also come 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\/2\">A Tour of Go: Structs<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/tour\/methods\/1\">A Tour of Go: Methods<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/ref\/spec#Struct_types\">Go spec: Struct types<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pkg.go.dev\/encoding\/json\">encoding\/json 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 structs group fields of different types into one custom type.<\/li>\n\n\n\n<li>Create values with named fields, and empty fields get zero values.<\/li>\n\n\n\n<li>Methods attach behaviour to a type through a receiver.<\/li>\n\n\n\n<li>Use a pointer receiver when a method must change the struct.<\/li>\n\n\n\n<li>Embedding reuses fields, and tags control JSON names.<\/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 used pointers briefly in this post. Next, we will look at them properly, so you know exactly when Go copies data and when it shares it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Pointers Explained Simply<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go structs let you group related data into one custom type, like a student with a name, age and grade. In this post, you&hellip;<\/p>\n","protected":false},"author":1,"featured_media":196,"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,31,23,21],"swapz_series":[],"class_list":["post-152","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-lang","tag-go-structs","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 Structs Explained for Beginners with Examples<\/title>\n<meta name=\"description\" content=\"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.\" \/>\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-structs-beginners-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Structs Explained for Beginners with Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-04T03: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-structs-beginners-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-structs-beginners-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Structs Explained for Beginners\",\"datePublished\":\"2026-04-04T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/\"},\"wordCount\":723,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-structs-beginners-guide-featured-1.png\",\"keywords\":[\"Go Lang\",\"Go Structs\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/\",\"name\":\"Go Structs Explained for Beginners with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-structs-beginners-guide-featured-1.png\",\"datePublished\":\"2026-04-04T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:39+00:00\",\"description\":\"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-structs-beginners-guide-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-structs-beginners-guide-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Structs featured image: cards showing struct fields, methods and JSON tags\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-structs-beginners-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Structs 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 Structs Explained for Beginners with Examples","description":"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.","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-structs-beginners-guide\/","og_locale":"en_US","og_type":"article","og_title":"Go Structs Explained for Beginners with Examples","og_description":"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.","og_url":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-04T03: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-structs-beginners-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-structs-beginners-guide\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Structs Explained for Beginners","datePublished":"2026-04-04T03:30:00+00:00","dateModified":"2026-10-10T15:50:39+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/"},"wordCount":723,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-featured-1.png","keywords":["Go Lang","Go Structs","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/","url":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/","name":"Go Structs Explained for Beginners with Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-featured-1.png","datePublished":"2026-04-04T03:30:00+00:00","dateModified":"2026-10-10T15:50:39+00:00","description":"Learn Go structs with simple examples: define and create structs, zero values, pointers, methods, embedding and JSON struct tags.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-structs-beginners-guide-featured-1.png","width":1200,"height":630,"caption":"Go Structs featured image: cards showing struct fields, methods and JSON tags"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-structs-beginners-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Structs 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\/152","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=152"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/152\/revisions\/155"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/196"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=152"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}