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:
parent
bcd9fd49b1
commit
1022dd05db
10 changed files with 60 additions and 21 deletions
|
@ -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 .
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue