Improved go module input handling and errors