Thanks to the simplicity of Golang and soaring interest in using Golang as the programming language to develop new software. Many employers are looking to hire Golang developers even though Golang is still consider a young programming language.

Here are some of the Golang specific technical questions and answers that both interviewer and interviewee can use to prepare for a job interview.

1. Give a summary of Golang.

A system programming language developed at Google. It has inbuilt garbage collection and supports concurrency. The code can be compiled into a single executable binary and don't need addition library or runtime to execute it on server.

2. Can you declare a class in Golang?

Yes, Golang has a unique way of implementing class with the type interface.

Array size is fixed, slice size is not. Can dynamically increase or decrease a slice's size during runtime but not for array. Slice is similar to a linked list, can do push, pop, FIFO, LIFO on slice. Use builtin append, copy functions to manipulate slice.

8. What's the difference between cap() and len()?

Len() - gives the number of elements inside a slice.

Cap() - gives the capacity of the slice. Number of elements the slice can accommodate.

In reality, even senior Golang developers can be trapped by some of the questions asked during interview. Most people can code comfortably in with the help of search engines such as Google or DuckDuckGo. As long as the potential candidate knows how to answer basic Golang questions and able to find answers on online forums to get the job done in time, it is good enough.

Tip :

As of 2015, it is easy to spot a cheat if you see any developer resume stating that he or she has 10 years++ experience in Golang. ;-)

By AdamNg

IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.