Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Display elements in the linked list
func DisplayList(head *Node) {
fmt.Printf("The list is: ")
for ; head != nil; head = head.Next {
fmt.Print(head.Data, " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment