Monday, November 16, 2009

A 'Go' Linked List Implementation

So I've been experimenting with Google's Go programming language. So far I'm liking it quite a bit. Here's a rudimentary implementation of a Stack I made using a Linked List. As you can see, I've defined two interfaces -- one for the Linked List functionality and one for the Stack functionality -- but I haven't implemented either fully. There's also a main() function thrown in to demonstrate the functionality. Right now the Linked List only stores integers, but this could be changed very easily. 

--David

Click here to download:
LinkedListStack.go (1 KB)

Posted via email from Dave's posterous

2 Comments:

Anonymous Anonymous said...

Dear Author www.pilgrimrock.com !
It is remarkable

6:45 PM  
Blogger David H said...

Yes, you can definitely quote my posts. Also, my Twitter account is @dhilowitz

Thanks,
David

12:10 PM  

Post a Comment

<< Home