command
module
Version:
v2.0.0-...-723fa23
Opens a new window with list of versions in this module.
Published: May 4, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶

gosimplehttpserver
Golang http server with logging and gracefull shutdown
- 'root' folder with mux and gracefull shutdown
- 'basic' subfolder without mux and gracefull shutdown
build
- go get -d -v
- go clean
- go build
run
debug
- go get -u github.com/go-delve/delve/cmd/dlv
- dlv debug ./ip
go lang build for different boards
- GOOS=linux GOARCH=386 go build (386 needed for busybox)
- GOOS=linux GOARCH=arm GOARM=6 go build (Raspberry Pi build)
- GOOS=linux GOARCH=arm64 go build (Odroid C2 build)
go lang build for docker
- CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -v .
docker build
docker build -t gosimplehttpserver:latest . --build-arg BIN_FILE=./gosimplehttpserver
Docker publish to github registry
- docker tag gosimplehttpserver:latest docker.pkg.github.com/wlanboy/gosimplehttpserver/gosimplehttpserver:latest
- docker push docker.pkg.github.com/wlanboy/gosimplehttpserver/gosimplehttpserver:latest
Docker hub
Docker Registry repro
docker run
docker run --name gosimplehttpserver -p 7000:7000 wlanboy/gosimplehttpserver
calls
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.