refactor: rebuild application with stl only
This commit is contained in:
parent
0a4efb8630
commit
da24e3c258
10 changed files with 36 additions and 56 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue