split go pkg into 3 files.