porting Apache commons lang by golang