Go 1.1 file trimming