modulepackage
2.0.0-20240915040127-3d72ed5866f0
Repository: https://github.com/wlanboy/gowebfrontend.git
Documentation: pkg.go.dev
# README
gowebfrontend
Golang webserver using mux and html templates
using
- "context"
- "os"
- "os/signal"
- "syscall"
- "fmt"
- "time"
- "log"
- "html/template"
- "net/http"
- "net/http/httputil"
- "sync"
- "sync/atomic"
- "github.com/gorilla/mux"
- "github.com/gorilla/handlers"
get dependencies and build server
- go get -d -v
- go clean
- go build
run
- go run main.go
debug
- go get -u github.com/go-delve/delve/cmd/dlv
- dlv debug ./goservice
rest calls to create event and to list all events
- curl -X POST http://127.0.0.1:8000/event -H 'Content-Type: application/json' -d '{"Name": "test", "Type": "info"}'
- curl -X GET http://127.0.0.1:8100/
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author