func FindUsersHandler(c *routing.Context) error {
	page, err := http.ParsePageParam(c)
	if err != nil {
		return http.Error(c, err.Error(), 400, UsersServiceName())
	}
	searchQuery := ""
	if c.QueryArgs().Has("q") {
		searchQuery = string(c.QueryArgs().Peek("q"))
	}
	userService := getUserService(c)
	users := userService.FindUsersByUsernameOrEmail(searchQuery, page)
	if users == nil {
		return http.Ok(c, `[]`, UsersServiceName())
	}
	userJSON, _ := json.Marshal(users)
	return http.Ok(c, string(userJSON), UsersServiceName())
}
FindUsersHandler handle GET /users
package controllers
import (
	"encoding/json"
	"github.com/Glintt/gAPI/api/http"
	userModels "github.com/Glintt/gAPI/api/users/models"
	"github.com/Glintt/gAPI/api/users"
	"github.com/Glintt/gAPI/api/utils"
	routing "github.com/qiangxue/fasthttp-routing"
)
func UsersServiceName() string {
	return users.SERVICE_NAME
}
func GetUserHandler(c *routing.Context) error {
	userService := getUserService(c)
	user := userService.GetUserByUsername(c.Param("username"))
	if len(user) == 0 {
		return http.NotFound(c, "User not found", UsersServiceName())
	}
	user[0].Password = ""
	userJSON, _ := json.Marshal(user[0])
	return http.Ok(c, string(userJSON), UsersServiceName())
}