Skill Zuno · skillzunos.com · Fullstack
Go interview questions
Prepare for Go interviews on Skill Zuno. This practice book covers Go interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.
Open Go on Skill ZunoAlso see the Go tutorial.
Go is a statically typed, compiled language from Google designed for simple, fast and concurrent software. It has goroutines and channels built in, implicit interfaces, and a single static binary output. Go interviews focus on concurrency, slices and maps, interfaces, error handling and the context package.
Sample Go interview questions
What is the difference between a buffered and an unbuffered channel?
A send on an unbuffered channel blocks until a receiver takes the value, so it synchronises the two goroutines. A buffered channel accepts sends until its buffer is full, and receives block only when it is empty.
How are interfaces implemented in Go?
Implicitly. Any type that has all the methods of an interface satisfies it, with no implements keyword. This keeps packages decoupled: a consumer can define a small interface for just the methods it needs.
What happens when you append to a slice?
If the backing array has spare capacity, append writes into it and other slices sharing that array see the change. If not, Go allocates a bigger array, copies the elements and returns a slice pointing to the new array.
How does Go handle errors?
Functions return an error as their last value and callers check if err != nil. Errors are wrapped with fmt.Errorf("...: %w", err) and inspected with errors.Is and errors.As. panic is reserved for unrecoverable bugs.
What is the context package for?
A context.Context carries deadlines, cancellation signals and request-scoped values across API boundaries and goroutines. Functions doing I/O take ctx as their first argument and stop when ctx.Done() is closed.
What you can practice
- Go interview questions for beginners and experienced developers
- Level-based practice: New, Easy, Medium, Hard, and Diff
- Fullstack topics alongside Go on skillzunos.com