train network simulator writting in golang