init
This commit is contained in:
16
cmd/observ.go
Normal file
16
cmd/observ.go
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/go-chi/chi/v5"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
r := chi.NewRouter()
|
||||||
|
|
||||||
|
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Write([]byte("welcome")) //nolint:errcheck
|
||||||
|
})
|
||||||
|
http.ListenAndServe(":8080", r) //nolint:errcheck
|
||||||
|
}
|
||||||
5
go.mod
Normal file
5
go.mod
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
module git.mak-sim.ru/maksim/observability_2025
|
||||||
|
|
||||||
|
go 1.24.1
|
||||||
|
|
||||||
|
require github.com/go-chi/chi/v5 v5.2.3
|
||||||
Reference in New Issue
Block a user