Housekeeping for Go dir.