Kendrick wants to create a Go program that takes as input a number of whitespace-separated string Linux/macOS path elements, joins the path elements, and then checks if the joined path is absolute or not.
Kendrick has already written the code to read the whitespace-separated string path elements from the stdin! Your task is to help Kendrick write the required additional code to join the path elements and check whether they're absolute.
This problem uses the
bufio package to scan the whitespace-separated path elements and the strings package to split the input into the pathElements slice. To solve this task, you don't need to know how the bufio package works. The only objective is to join the path elements and check if they are absolute or not.