From 5b769bcda74399c7aa716e6609c15d2cea616c1b Mon Sep 17 00:00:00 2001 From: lnino Date: Wed, 10 Apr 2024 20:02:31 +0200 Subject: [PATCH] upgrade go --- controller/mainpage.go | 4 ++-- controller/testpage.go | 4 ++-- functions/notfound.go | 2 +- go.mod | 2 +- html/index.html | 2 +- main.go | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/controller/mainpage.go b/controller/mainpage.go index 09887a3..9ebf4ec 100644 --- a/controller/mainpage.go +++ b/controller/mainpage.go @@ -1,7 +1,7 @@ package controller import ( - infini "infini/functions" + hub "hub/functions" "net/http" "text/template" ) @@ -9,7 +9,7 @@ import ( func MainPage(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { // met l'url de la page - infini.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404 + hub.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404 return } diff --git a/controller/testpage.go b/controller/testpage.go index a66641d..dd4315f 100644 --- a/controller/testpage.go +++ b/controller/testpage.go @@ -1,7 +1,7 @@ package controller import ( - infini "infini/functions" + hub "hub/functions" "net/http" "text/template" ) @@ -9,7 +9,7 @@ import ( func TestPage(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/test" { // met l'url de la page - infini.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404 + hub.NotFound(w, r) // si l'url n'est pas bonne, renvoie sur la page d'erreur 404 return } diff --git a/functions/notfound.go b/functions/notfound.go index c9084a9..44b5649 100644 --- a/functions/notfound.go +++ b/functions/notfound.go @@ -1,4 +1,4 @@ -package infini +package Hub import "net/http" diff --git a/go.mod b/go.mod index 059432c..e33041d 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module infini +module hub go 1.19 diff --git a/html/index.html b/html/index.html index 5824289..c946c00 100644 --- a/html/index.html +++ b/html/index.html @@ -1,7 +1,7 @@ Test - +

Mino

diff --git a/main.go b/main.go index edc5047..c2bb392 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - controller "infini/controller" + controller "hub/controller" "net/http" )