Improved support for directories and added go (golang) support