1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

chore(refactor): refactors go code (#2443)

This commit is contained in:
Amir Raminfar
2023-10-24 06:28:16 -07:00
committed by GitHub
parent 74e44bd5f2
commit 2a07ca39db
31 changed files with 18 additions and 22 deletions

11
internal/web/version.go Normal file
View File

@@ -0,0 +1,11 @@
package web
import (
"fmt"
"net/http"
)
func (h *handler) version(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "text/html")
fmt.Fprintf(w, "<pre>%v</pre>", h.config.Version)
}