Exercise: Introduction to Go

Let’s test our understanding by attempting these challenges.

We'll cover the following

Let's practice what we've learned so far in the following exercises. Solutions to these exercises have been provided in the next lesson.

Problem 1

Our version of which(1) stops after finding the first occurrence of the desired executable. Make the necessary changes to the which.go program below in order to find all possible occurrences of the desired executable. If no executable is found, print No executable found.

Get hands-on with 1200+ tech skills courses.