{"id":175,"date":"2026-04-09T09:00:00","date_gmt":"2026-04-09T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/?p=175"},"modified":"2026-10-10T21:20:42","modified_gmt":"2026-10-10T15:50:42","slug":"go-goroutines-beginners-guide","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/","title":{"rendered":"Go Goroutines Explained for Beginners"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Go goroutines let your program do many tasks at the same time, like downloading files while it serves users. In this post, you will learn how to start them, how to wait for them and how to avoid the common traps. Each idea comes with a short example that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A goroutine runs a function, so make sure you are comfortable with <a href=\"https:\/\/smitabharat.com\/blog\/go-functions-beginners-guide\/\">writing and calling functions in Go<\/a>. We will also use loops from <a href=\"https:\/\/smitabharat.com\/blog\/go-for-loops-examples\/\">loops in Go with range, break and continue<\/a> to start many workers at once.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Go Goroutines?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A goroutine is a function that runs alongside the rest of your program. The Go runtime, which is the engine inside every Go program, schedules them for you. As a result, you can start thousands of them with almost no effort.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a restaurant kitchen. One chef could cook every dish in turn, but that is slow. Instead, several cooks work on different dishes at once. Go goroutines are those extra cooks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concurrency vs Parallelism<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Concurrency means dealing with many tasks at once, by switching between them. Parallelism means doing many tasks at the exact same moment on different CPU cores. Go gives you concurrency, and it also uses parallelism automatically when your machine has several cores.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, a web server waits on many slow network calls at once. With Go goroutines, each request gets its own task, so one slow user never blocks the others. That is a big reason backend teams pick Go for APIs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Starting Go Goroutines with go<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>func say(msg string) {\n\tfor i := 1; i &lt;= 3; i++ {\n\t\tfmt.Println(msg, i)\n\t\ttime.Sleep(10 * time.Millisecond)\n\t}\n}\n\nfunc main() {\n\tgo say(\"goroutine\")\n\tsay(\"main\")\n}\n\/\/ main 1\n\/\/ goroutine 1\n\/\/ goroutine 2\n\/\/ main 2\n\/\/ ... (the order changes on each run)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Just put the keyword <code>go<\/code> before a function call. That call now runs in the background, while <code>main<\/code> carries on with the next line. Because both run together, their output mixes in a different order each time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why main Must Wait<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>func main() {\n\tgo fmt.Println(\"hi\")\n}\n\/\/ usually prints nothing<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When <code>main<\/code> returns, the whole program stops, even if goroutines are still working. So here the program usually ends before &#8220;hi&#8221; appears. Never use <code>time.Sleep<\/code> to fix this, because you can never guess the right delay.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Waiting for Go Goroutines with WaitGroup<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>var wg sync.WaitGroup\n\nfor i := 1; i &lt;= 3; i++ {\n\twg.Add(1)\n\tgo func(id int) {\n\t\tdefer wg.Done()\n\t\tfmt.Println(\"worker\", id, \"done\")\n\t}(i)\n}\n\nwg.Wait()\nfmt.Println(\"all workers finished\")\n\/\/ worker 3 done\n\/\/ worker 1 done\n\/\/ worker 2 done\n\/\/ all workers finished<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A <code>sync.WaitGroup<\/code> is a counter of running tasks. First, <code>Add(1)<\/code> raises it before each goroutine starts. Then each goroutine calls <code>Done()<\/code> when it finishes, and <code>Wait()<\/code> blocks until the counter reaches zero.<\/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-goroutines-beginners-guide-diagram-1024x640.png\" alt=\"Go Goroutines diagram showing main starting three workers and waiting with a WaitGroup\" class=\"wp-image-177\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-diagram.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Main starts three workers, and wg.Wait() holds main until every worker calls Done().<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Passing Values into a Goroutine<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the example above, <code>i<\/code> goes in as the argument <code>id<\/code>. Since Go 1.22, each loop round gets its own <code>i<\/code>, so reading it directly is also safe. Still, passing values as arguments makes your intent very clear.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also start a goroutine with a named function, like <code>go sendEmail(user)<\/code>. Either way, the <code>go<\/code> keyword returns at once, so the caller never waits for a result. To get a result back, you need a channel, which is the topic of the next lesson.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Cheap Are Go Goroutines?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Feature<\/th><th>OS thread<\/th><th>Goroutine<\/th><\/tr><\/thead><tbody><tr><td>Starting memory<\/td><td>About 1 MB or more<\/td><td>A few KB<\/td><\/tr><tr><td>Who schedules it<\/td><td>The operating system<\/td><td>The Go runtime<\/td><\/tr><tr><td>How many you can run<\/td><td>Thousands<\/td><td>Hundreds of thousands or more<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A goroutine starts with a tiny stack that grows only when needed. That is why a Go web server can handle each request in its own goroutine without trouble.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with Go Goroutines<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Problem you see<\/th><th>Why it happens<\/th><th>How to fix it<\/th><\/tr><\/thead><tbody><tr><td>Output is missing<\/td><td>Main returned before the goroutines finished.<\/td><td>Use a WaitGroup.<\/td><\/tr><tr><td>panic: sync: negative WaitGroup counter<\/td><td>Done ran more times than Add.<\/td><td>Call Add(1) once per goroutine.<\/td><\/tr><tr><td>Program hangs forever<\/td><td>A goroutine never called Done.<\/td><td>Use defer wg.Done().<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Also, never call <code>wg.Add<\/code> inside the goroutine itself, because Wait might run first. Goroutine questions are interview favourites, so practise with 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\/1\">A Tour of Go: Goroutines<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/doc\/effective_go#goroutines\">Effective Go: Goroutines<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pkg.go.dev\/sync#WaitGroup\">sync.WaitGroup 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 goroutines run functions alongside the rest of your program.<\/li>\n\n\n\n<li>Start one by writing go before a function call.<\/li>\n\n\n\n<li>The program stops when main returns, so always wait for your goroutines.<\/li>\n\n\n\n<li>Use Add, Done and Wait from sync.WaitGroup to wait properly.<\/li>\n\n\n\n<li>Goroutines are cheap, so you can run thousands of them.<\/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\">Goroutines can run together, but they still need to talk. Next, we will send data between them safely using channels.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Coming soon: Go Channels Explained with Examples<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go goroutines let your program do many tasks at the same time, like downloading files while it serves users. In this post, you will&hellip;<\/p>\n","protected":false},"author":1,"featured_media":201,"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":[36,11,23,21],"swapz_series":[],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-goroutines","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 Goroutines Explained for Beginners with Examples<\/title>\n<meta name=\"description\" content=\"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency 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-goroutines-beginners-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Goroutines Explained for Beginners with Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency and avoid common mistakes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-09T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-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-goroutines-beginners-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Goroutines Explained for Beginners\",\"datePublished\":\"2026-04-09T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/\"},\"wordCount\":729,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-goroutines-beginners-guide-featured-1.png\",\"keywords\":[\"Go Goroutines\",\"Go Lang\",\"Go Tutorial\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/\",\"name\":\"Go Goroutines Explained for Beginners with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-goroutines-beginners-guide-featured-1.png\",\"datePublished\":\"2026-04-09T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:42+00:00\",\"description\":\"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency and avoid common mistakes.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-goroutines-beginners-guide-featured-1.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-goroutines-beginners-guide-featured-1.png\",\"width\":1200,\"height\":630,\"caption\":\"Go Goroutines featured image: cards showing the go keyword, WaitGroup and concurrent workers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-goroutines-beginners-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Goroutines 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 Goroutines Explained for Beginners with Examples","description":"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency 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-goroutines-beginners-guide\/","og_locale":"en_US","og_type":"article","og_title":"Go Goroutines Explained for Beginners with Examples","og_description":"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency and avoid common mistakes.","og_url":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-09T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:42+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-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-goroutines-beginners-guide\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Goroutines Explained for Beginners","datePublished":"2026-04-09T03:30:00+00:00","dateModified":"2026-10-10T15:50:42+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/"},"wordCount":729,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-featured-1.png","keywords":["Go Goroutines","Go Lang","Go Tutorial","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/","url":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/","name":"Go Goroutines Explained for Beginners with Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-featured-1.png","datePublished":"2026-04-09T03:30:00+00:00","dateModified":"2026-10-10T15:50:42+00:00","description":"Learn Go goroutines with simple examples: start background tasks, wait with sync.WaitGroup, understand concurrency and avoid common mistakes.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-featured-1.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-goroutines-beginners-guide-featured-1.png","width":1200,"height":630,"caption":"Go Goroutines featured image: cards showing the go keyword, WaitGroup and concurrent workers"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Goroutines 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\/175","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=175"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/201"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=175"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}