// GetUserByUsername search user by username
GetUserByUsername search user by username
// GetUserByUsername search user by username
func (us *UserService) GetUserByUsername(username string) []models.User {
	us.UserRepos.OpenTransaction()
	users := us.UserRepos.GetUserByUsername(username)
	releaseConnection(us)
	return users
}
func ( us * UserService ) GetUserByUsername ( username string ) [ ] models . User { us . UserRepos . OpenTransaction ( ) users := us . UserRepos . GetUserByUsername ( username ) releaseConnection ( us ) return users }
GetUserByUsername search user by username
GetUserByUsername search user by username