Interesting Facts About Golang:

Interesting Facts About Golang:

  • Google wanted an alternative to C++ and solves the issues of software engineering, this gives rise to the development of the Go programming language.
  • Go is supported on almost every Operating system like DragonFly BSD, FreeBSD, Linux, macOS, NetBSD, OpenBSD, Plan 9, Solaris, and Windows. 
  • Go provides 2 features that are capable of replacing Class inheritance. The first is embedding and the other is interfaces.
  • Go has garbage collection which automatically performs memory management and permits deferred execution of functions.
  • In Go language, we don’t need to put a comma (, ) at the end of statements like Python.
  • There is a special Keyword in Go called ‘defer‘, which delays the execution of a method or function until the nearby function returns.
  • Go has a special built-in function known as ‘make‘, which is used to create slices, maps, and channels.
  • If any variable or package is declared but not used then, the Go compiler will show an error.
  • In Go, there is a new data type known as ‘slice‘, which has a more powerful interface to sequences as compared to Arrays.
  • Sometimes we want to import packages only for their side effects, without exploiting their use like import _ “net/ http/ pprof”. For this purpose, the Go language is very useful.
  • The ‘Goroutines‘ is a special function in Go, which runs concurrently with other functions or methods. 
  • In order to establish communication between goroutines. There exists a pipe known as ‘Channels‘.
  • Satisfaction with debugging (including debugging concurrency), using modules, and using cloud services. Each of these topics was rated “very” or “critically” important by a majority but significantly lower satisfaction scores compared to other topics.
  • Respondents use Golang in roughly similar ways whether they work at a small tech start-up or a large retail enterprise.


要查看或添加评论,请登录

SHREYA DHANUKA的更多文章

  • Dhanuka Silks Goes Online...

    Dhanuka Silks Goes Online...

    On the 14th of August 2024, we at "Dhanuka Silks" reached a small milestone and completed 1,000 followers on our…

  • About BIOS

    About BIOS

    BIOS: Basic Input/Output System As soon as we power on our systems, the first screen that comes up with the company's…

  • Are you repairing yourself in this lockdown?

    Are you repairing yourself in this lockdown?

    As the world finds itself in the most extraordinary of circumstances, preparing to ‘power down’ and self-isolate in an…

    4 条评论
  • Top 50 Go Language Interview Questions and Answers.

    Top 50 Go Language Interview Questions and Answers.

    Q1. What is the default value of a global variable in Go? Ans1.

    1 条评论
  • Which and Where are the companies using GOLANG.

    Which and Where are the companies using GOLANG.

    You will be shocked to know the names of the companies using GOLANG and some who are switching to GOLANG because of…

  • Coding in the school curriculum

    Coding in the school curriculum

    The reason we learn something is not because of it’s abstract knowledge and we need to tick boxes, but when we have…

  • My wish for the life I am yet to live

    My wish for the life I am yet to live

    Whenever my family planned a trip to a foreign country, I couldn't join them due to my 10th boards and then later…

社区洞察

其他会员也浏览了