Go struct utility