{"id":179,"date":"2026-04-10T09:00:00","date_gmt":"2026-04-10T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=179"},"modified":"2026-10-10T21:20:43","modified_gmt":"2026-10-10T15:50:43","slug":"go-channels-examples","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/","title":{"rendered":"Go Channels Explained with Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go channels let goroutines send data to each other safely, without sharing variables. In this post, you will learn to send and receive values, use buffered channels, close them and wait on several at once. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Channels connect goroutines, so first read <a href=\"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/\">goroutines in Go for beginners<\/a> if you have not already. We will also loop over a channel with range, just like you did in <a href=\"https:\/\/smitabharat.com\/blog\/go-for-loops-examples\/\">loops in Go with range, break and continue<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Go Channels?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A channel is a typed pipe. One goroutine puts a value in, and another takes it out on the other side. The Go team sums it up well: share memory by communicating, instead of communicating by sharing memory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of the order window in a restaurant. The cook places a ready dish on the counter, and the waiter picks it up. Neither needs to walk into the other&#8217;s space. Similarly, Go channels hand data across without any shared variables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sending and Receiving on Go Channels<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>ch := make(chan string)\n\ngo func() {\n\tch &lt;- \"order ready\" \/\/ send\n}()\n\nmsg := &lt;-ch \/\/ receive\nfmt.Println(msg) \/\/ order ready<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create a channel with <code>make(chan Type)<\/code>. The arrow <code>&lt;-<\/code> shows which way data flows: <code>ch &lt;- v<\/code> sends, while <code>&lt;-ch<\/code> receives. Also, this channel is unbuffered, so the sender waits until a receiver is ready.<\/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-channels-examples-diagram-1024x640.png\" alt=\"Go Channels diagram showing a sender and receiver on an unbuffered channel next to a buffered channel\" class=\"wp-image-181\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>An unbuffered channel hands each value directly from sender to receiver, while a buffered one can hold a few values.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because the receive waits for the send, the channel also works as a signal. So in this example, main cannot finish before the goroutine sends its message.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Buffered Go Channels<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>jobs := make(chan int, 3)\njobs &lt;- 1\njobs &lt;- 2\nfmt.Println(len(jobs), cap(jobs)) \/\/ 2 3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Buffered Go channels have room for a fixed number of values. Sends only wait when the buffer is full, and receives only wait when it is empty. In short, a buffer lets a fast sender run a little ahead of a slow receiver.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Closing a Channel and Using range<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>close(jobs)\n\nfor j := range jobs {\n\tfmt.Println(\"job\", j)\n}\n\/\/ job 1\n\/\/ job 2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The sender calls <code>close<\/code> to say &#8220;no more values are coming&#8221;. Then <code>range<\/code> reads every remaining value and stops on its own. Only the sender should close a channel, never the receiver.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking if a Channel Is Closed<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>v, ok := &lt;-jobs\nfmt.Println(v, ok) \/\/ 0 false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Receiving from a closed, empty channel returns the zero value at once. The second value, <code>ok<\/code>, is false in that case. This is the same comma ok idea you met with maps.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Real Go Channels Example: Producer and Consumer<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>results := make(chan int)\n\ngo func() {\n\tfor i := 1; i &lt;= 3; i++ {\n\t\tresults &lt;- i * i\n\t}\n\tclose(results)\n}()\n\nfor r := range results {\n\tfmt.Println(r)\n}\n\/\/ 1\n\/\/ 4\n\/\/ 9<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The goroutine produces square numbers, and main consumes them. Once the producer closes the channel, the loop ends cleanly. Real programs use this pattern for job queues, log processing and data pipelines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Waiting on Many Channels with select<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>fast := make(chan string)\ngo func() {\n\ttime.Sleep(10 * time.Millisecond)\n\tfast &lt;- \"done\"\n}()\n\nselect {\ncase m := &lt;-fast:\n\tfmt.Println(m) \/\/ done\ncase &lt;-time.After(time.Second):\n\tfmt.Println(\"timeout\")\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>select<\/code> waits on several channels and runs whichever case is ready first. Here, it also adds a timeout, so your program never waits forever for a slow task.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Channels<\/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>fatal error: all goroutines are asleep &#8211; deadlock!<\/td><td>A send has no receiver.<\/td><td>Receive in another goroutine, or add a buffer.<\/td><\/tr><tr><td>panic: send on closed channel<\/td><td>The code sent after close.<\/td><td>Close only when sending is finished.<\/td><\/tr><tr><td>Loop never ends<\/td><td>The sender forgot to close.<\/td><td>Call close(ch) after the last send.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The deadlock error looks scary, but Go is helping you. It means every goroutine is stuck waiting. Channel puzzles are common in interviews, so try my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a>.<\/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\/concurrency\/2\">A Tour of Go: Channels<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/doc\/effective_go#channels\">Effective Go: Channels<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/ref\/spec#Select_statements\">Go spec: Select statements<\/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 channels pass values safely between goroutines.<\/li>\n\n\n\n<li>Use ch &lt;- v to send and v := &lt;-ch to receive.<\/li>\n\n\n\n<li>Unbuffered channels wait for both sides, and buffered ones hold a few values.<\/li>\n\n\n\n<li>The sender closes the channel, and range stops after the last value.<\/li>\n\n\n\n<li>Use select to wait on many channels or add a timeout.<\/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\">Channels are one way to coordinate goroutines. Next, we will learn the other way: locks and helpers from the sync package.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Sync Package: WaitGroup and Mutex Explained<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go channels let goroutines send data to each other safely, without sharing variables. In this post, you will learn to send and receive values,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":202,"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":[37,11,23,21],"swapz_series":[],"class_list":["post-179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-channels","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 Channels Explained with Simple Examples<\/title>\n<meta name=\"description\" content=\"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.\" \/>\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-channels-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Channels Explained with Simple Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-channels-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-10T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-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-channels-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Channels Explained with Examples\",\"datePublished\":\"2026-04-10T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/\"},\"wordCount\":668,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-channels-examples-featured-1.png\",\"keywords\":[\"Go Channels\",\"Go Lang\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/\",\"name\":\"Go Channels Explained with Simple Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-channels-examples-featured-1.png\",\"datePublished\":\"2026-04-10T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:43+00:00\",\"description\":\"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-channels-examples-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-channels-examples-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Channels featured image: cards showing send, receive and select on channels\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-channels-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Channels 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 Channels Explained with Simple Examples","description":"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.","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-channels-examples\/","og_locale":"en_US","og_type":"article","og_title":"Go Channels Explained with Simple Examples","og_description":"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.","og_url":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-10T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:43+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-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-channels-examples\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Channels Explained with Examples","datePublished":"2026-04-10T03:30:00+00:00","dateModified":"2026-10-10T15:50:43+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/"},"wordCount":668,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-featured-1.png","keywords":["Go Channels","Go Lang","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/","url":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/","name":"Go Channels Explained with Simple Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-featured-1.png","datePublished":"2026-04-10T03:30:00+00:00","dateModified":"2026-10-10T15:50:43+00:00","description":"Learn Go channels with simple examples: send and receive, buffered channels, close and range, select with timeouts and deadlock fixes.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-channels-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-channels-examples-featured-1.png","width":1200,"height":630,"caption":"Go Channels featured image: cards showing send, receive and select on channels"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-channels-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Channels 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\/179","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=179"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/182"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/202"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=179"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}