Useful include function

Some times you wonder why is there not an easier way to import or include stuff...

Well here is a snippet that checks for file type and for multiple inclusion from different places in your code. And if its a go ads them to the head of the page so you dont need to cluter the body with lib or framework includes.

Usage..