refactor: rebuild application with stl only

This commit is contained in:
Patryk Hegenberg 2024-11-27 16:49:27 +01:00
parent 0a4efb8630
commit da24e3c258
10 changed files with 36 additions and 56 deletions

View file

@ -3,10 +3,9 @@ package utils
import (
"echoTest/models"
"fmt"
"net/http"
"os/exec"
"runtime"
"github.com/labstack/echo/v4"
)
func SetNote(prozent float64) float64 {
@ -51,7 +50,7 @@ func OpenInBrowser(url string) {
}
}
func ValidateName(c echo.Context, bewertungen *[]models.Bewertung) string {
func ValidateName(c *http.Request, bewertungen *[]models.Bewertung) string {
newNachname := c.FormValue("nachname")
newVorname := c.FormValue("vorname")
for _, bewertung := range *bewertungen {