Provyn Prep · Go competency

Errors & idiom in the Go assessment

Errors & idiom is one of the areas a Provyn Go credential scores separately, so a recruiter can see it on its own rather than averaged into one number. This guide explains what it covers, how it is tested and what to practice.

What it covers

Idiomatic Go: explicit error handling and wrapping, interfaces, slices and maps, generics, visibility and the built-in functions.

Topics in the practice set for this area

  • syntax
  • control flow
  • error handling
  • interfaces
  • data structures
  • builtins
  • visibility
  • slices
  • generics

How it is tested

In the timed assessment, questions in this area use these formats: fill-in-the-blank code, matching, multiple choice, short answer. Each attempt draws its own set of questions, and this area gets its own sub-score on the credential when the attempt includes enough questions from it. The assessment questions themselves are never published; the practice set below is written separately for study.

What to practice

  • Wrap errors with %w and unwrap them with errors.Is and errors.As.
  • Predict how append affects a slice that shares its backing array with another.
  • Define a small interface where it is consumed rather than where it is implemented.

Try a practice question

From the free practice set (11 questions in this area). Answers and explanations are in the practice set.

  • Which keyword declares a variable in Go?
  • `:=` is used for:
  • A function opens a file and then runs `defer f.Close()`. When does `Close` run?

Practice before the real thing

Both are free and use practice questions only, never questions from the real assessment.

More Go study guides

Last reviewed 2026-10-06.