Ajouter templating go

Déplacer embed/ vers public/

Ajouter public/js et public/scss

Ajouter templating pour public/html/*.gohtml

Ajouter --build à procédure dans README.md

Déplacer contenu de index.html vers template `index-html`

Ajouter middleware RemoveTrailingSlash

Déplacer anonymous function de route `/` vers handler `handleIndex`
This commit is contained in:
Victor Lacasse-Beaudoin 2023-03-21 18:37:51 -04:00
parent bcd9fd49b1
commit 1022dd05db
10 changed files with 60 additions and 21 deletions

View file

@ -6,7 +6,7 @@ WORKDIR /go/src/app
COPY go.mod go.sum main.go server.go ./
ADD embed/ embed/
ADD public/ public/
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .