update permissions on golang