We studied transport properties of electrons in two-dimensional electron gas with Wigner equation. It was found that as electrons enter the barrier interface obliquely and are reflected, Goos-Hanchen shift similar to light waves presents. With Wigner equation we get transient evolution of electrons, with which we can calculate Goos-Hanchen shift and study trajectory of electrons inside the potential barrier as well. Compared with Goos-Hanchen shift obtained with the stable phase method, it is found that the interface reflection considering Goos-Hanchen shift has a certain retardation in time compared with geometric optical reflection, which is independent of incident angle, but increases with the increase of width. However, Goos-Hanchen shift of electrons is independent of barrier width and increases with the incident angle or incident energy. According to this, we propose an electron beam splitter model in which Gaussian wave packets with different initial kinetic energies inject into the input. As electron energy is below 0. 01 eV, about 85% of the electrons move to the second output, while as electron energy is above 0. 07 eV, about 85% of the electrons move to the first output.