converting a linked list from C++ to Go, utilizing slices as a way to
return data from the list struct to main