update golang traps, add bit getter and setter