{"id":132,"date":"2021-01-21T15:00:03","date_gmt":"2021-01-21T15:00:03","guid":{"rendered":"https:\/\/kindsonthegenius.com\/go\/?p=132"},"modified":"2021-01-21T20:11:44","modified_gmt":"2021-01-21T20:11:44","slug":"go-programming-introduction","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/go\/2021\/01\/21\/go-programming-introduction\/","title":{"rendered":"GO Programming &#8211; Introduction"},"content":{"rendered":"<p>Go Programming language is a general-purpose language created by Google. According to Wikipedia, it is similar in syntax to C programming language but with better garbage collection, memory management and structural typing. Sometimes it is called <em>Golang<\/em>, but this is a misnomer. The real name is <strong><em>Go<\/em><\/strong>.<\/p>\n<ol>\n<li><a href=\"#t1\">Why you should learn Go Programming<\/a><\/li>\n<li><a href=\"#t2\">Features of Go Programming Language<\/a><\/li>\n<li><a href=\"#t3\">Features not include in Go<\/a><\/li>\n<li><a href=\"#t4\">Go versus Python<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t1\">1. Why you should learn Go<\/strong><\/h4>\n<p>This post was written in 2021 and there is very good reasons to learn Go programming in 2021. Here are some:<\/p>\n<ul>\n<li>Go programming language is quite easy to learn and master (beginner-friendly)<\/li>\n<li>You can use Go for data analytics programming like Python<\/li>\n<li>Has kind of support for Object Oriented Programming(OOP)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t2\">2. Features of Go Programming Language<\/strong><\/h4>\n<p>Here are some of the feature of the Go Programming language that you should know:<\/p>\n<ul>\n<li>Go programs produces statically linked native binaries without any external dependencies<\/li>\n<li>programming pattern is similar to dynamically typed languages<\/li>\n<li>Go program are know for simplicity and readability<\/li>\n<li>has inbuilt support for concurrency<\/li>\n<li>compile time is very good compared other languages (compile and runtime efficiency)<\/li>\n<li>supports Interfaces and type embedding<\/li>\n<li>efficient in network programming and multprocessing<\/li>\n<li>Excellent for server-side programming<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t3\">3. Features not Included<\/strong><\/h4>\n<ul>\n<li>not support for method and operator overloading (unlike C++)<\/li>\n<li>does not support circular dependencies among packages<\/li>\n<li>does not support pointers<\/li>\n<li>does not support generic programming<\/li>\n<li>does not support type inheritance<\/li>\n<li>does not support assertions<\/li>\n<\/ul>\n<p>These feature have been intentionally not include in effort to keep the language simples. Besides, you can achieve similar objective using other features provided in Go Programming Language.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong id=\"t4\">4. Go vs Python<\/strong><\/h4>\n<p>This is a question that have arisen among new programmer and I would just address it here. So find below some comparison between Go and Python.<\/p>\n<p>Note: some items in the table are not exactly corresponding but you have the idea!<\/p>\n<table>\n<thead>\n<tr>\n<td>SN<\/td>\n<td>Go<\/td>\n<td>Python<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>Support for concurrency<\/td>\n<td>Inbuilt Support Object Oriented Programming<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>No support for error handling<\/td>\n<td>Sharable<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Faster than Python<\/td>\n<td>Slower than Go<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Very easy to read<\/td>\n<td>Very large community<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>A compiled language<\/td>\n<td>Interpreted language<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>Statically typed language<\/td>\n<td>Dynamically typed language<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>Suited for server-side and system programming<\/td>\n<td>Suited for data science and analysis<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>Has garbage collection feature<\/td>\n<td>No memory management<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go Programming language is a general-purpose language created by Google. According to Wikipedia, it is similar in syntax to C programming language but with better &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-go-programming"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":2,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":134,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/posts\/132\/revisions\/134"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/go\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}