Search questions…
⌘
K
English
Tiếng Việt
日本語
한국어
Español
العربية
বাংলা
čeština
Dansk
Deutsch
Ελληνικά
Suomi
Français
Gaeilge
ગુજરાતી
Hausa
हिन्दी
Hrvatski
Magyar
Bahasa Indonesia
Italiano
Basa Jawa
ქართული
Lietuvių
मराठी
Melayu
Malti
नेपाली
Nederlands
Norsk
ਪੰਜਾਬੀ
Polski
Português
Română
Русский
Slovenščina
Shqip
Svenska
Kiswahili
தமிழ்
తెలుగు
ภาษาไทย
Türkçe
اردو
简体中文
flow
Home
Topics
Categories
Learning paths
Search
Home
/
Backend
/
Golang
Backend
Golang
Curated Golang interview questions with detailed answers.
30
questions
updated weekly
Junior
10
Middle
12
Senior
8
Golang questions
30 / 30 shown
Default
Popular
Newest
›
What is Go and what is it designed for?
Junior
#Language
#Golang
Details →
›
How do you declare variables and what are Go's basic types?
Junior
#Language
#Golang
Details →
›
How do functions and multiple return values work in Go?
Junior
#Language
#Golang
Details →
›
What is the difference between arrays and slices?
Junior
#Data Structures
#Golang
Details →
›
How do maps work in Go?
Junior
#Data Structures
#Golang
Details →
›
What are structs in Go?
Junior
#Language
#Golang
Details →
›
How do pointers work in Go?
Junior
#Language
#Golang
Details →
›
How do packages and modules organize Go code?
Junior
#Tooling
#Golang
Details →
›
What control-flow constructs does Go have?
Junior
#Language
#Golang
Details →
›
How does Go handle errors as values?
Junior
#Error Handling
#Golang
Details →
›
What are goroutines?
Middle
#Concurrency
#Golang
Details →
›
How do channels work?
Middle
#Concurrency
#Golang
Details →
›
How do interfaces work in Go?
Middle
#Language
#Golang
Details →
›
What do defer, panic and recover do?
Middle
#Error Handling
#Golang
Details →
›
What is the difference between value and pointer receivers?
Middle
#Language
#Golang
Details →
›
How does struct embedding (composition) work?
Middle
#Language
#Golang
Details →
›
What is the select statement?
Middle
#Concurrency
#Golang
Details →
›
What is the context package used for?
Middle
#Concurrency
#Golang
Details →
›
How do generics work in Go?
Middle
#Language
#Golang
Details →
›
What are common Go concurrency patterns?
Senior
#Concurrency
#Golang
Details →
›
When do you use the sync package instead of channels?
Senior
#Concurrency
#Golang
Details →
›
How does Go manage memory and garbage collection?
Senior
#Performance
#Golang
Details →
›
What causes goroutine leaks and how do you prevent them?
Senior
#Concurrency
#Golang
Details →
›
How do you test Go code?
Senior
#Testing
Details →
›
How do you profile and optimize Go performance?
Senior
#Performance
Details →
›
How does the Go runtime scheduler work?
Senior
#Concurrency
#Golang
Details →
›
What are type assertions and type switches?
Middle
#Language
#Golang
Details →
›
How do closures work in Go?
Middle
#Language
#Golang
Details →
›
How do you encode/decode JSON in Go?
Middle
#Language
#Golang
Details →
›
What is a data race and how do you detect one?
Senior
#Concurrency
#Golang
Details →