From b8bb280d0a8393cd16d4a8fcbf41f09661cd12a7 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sun, 23 Jul 2023 10:54:49 +0200 Subject: [PATCH] Init project --- .drone.yml | 2 +- README.md | 6 +++--- {template => bootserver}/Makefile | 2 +- {template => bootserver}/config/config.go | 0 {template => bootserver}/config/config_test.go | 0 {template => bootserver}/go.mod | 2 +- {template => bootserver}/go.sum | 0 {template => bootserver}/logger/logger.go | 0 {template => bootserver}/main.go | 6 +++--- {template => bootserver}/server/server.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) rename {template => bootserver}/Makefile (80%) rename {template => bootserver}/config/config.go (100%) rename {template => bootserver}/config/config_test.go (100%) rename {template => bootserver}/go.mod (85%) rename {template => bootserver}/go.sum (100%) rename {template => bootserver}/logger/logger.go (100%) rename {template => bootserver}/main.go (88%) rename {template => bootserver}/server/server.go (97%) diff --git a/.drone.yml b/.drone.yml index be4bc2f..a1922e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,7 +21,7 @@ steps: image: thegeeklab/drone-docker-buildx privileged: true settings: - repo: git.faercol.me/go-web-template + repo: git.faercol.me/http-boot-server tags: latest dry_run: true platforms: diff --git a/README.md b/README.md index 06c6df2..4a7ccd3 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# go-web-template +# HTTP boot server -[![Build Status](https://drone.faercol.me/api/badges/faercol/go-web-template/status.svg)](https://drone.faercol.me/faercol/go-web-template) +[![Build Status](https://drone.faercol.me/api/badges/faercol/http-boot-server/status.svg)](https://drone.faercol.me/faercol/http-boot-server) -Simple template for Go modules with a Web server \ No newline at end of file +Simple HTTP server to select boot options \ No newline at end of file diff --git a/template/Makefile b/bootserver/Makefile similarity index 80% rename from template/Makefile rename to bootserver/Makefile index 16349ff..f72f64d 100644 --- a/template/Makefile +++ b/bootserver/Makefile @@ -7,4 +7,4 @@ test: go test -v ./... run: build - ./build/template + ./build/boot_server diff --git a/template/config/config.go b/bootserver/config/config.go similarity index 100% rename from template/config/config.go rename to bootserver/config/config.go diff --git a/template/config/config_test.go b/bootserver/config/config_test.go similarity index 100% rename from template/config/config_test.go rename to bootserver/config/config_test.go diff --git a/template/go.mod b/bootserver/go.mod similarity index 85% rename from template/go.mod rename to bootserver/go.mod index c2a73ab..874b00b 100644 --- a/template/go.mod +++ b/bootserver/go.mod @@ -1,4 +1,4 @@ -module git.faercol.me/faercol/go-mod-template/template +module git.faercol.me/faercol/http-boot-server/bootserver go 1.20 diff --git a/template/go.sum b/bootserver/go.sum similarity index 100% rename from template/go.sum rename to bootserver/go.sum diff --git a/template/logger/logger.go b/bootserver/logger/logger.go similarity index 100% rename from template/logger/logger.go rename to bootserver/logger/logger.go diff --git a/template/main.go b/bootserver/main.go similarity index 88% rename from template/main.go rename to bootserver/main.go index 5ef4d49..5cf6fab 100644 --- a/template/main.go +++ b/bootserver/main.go @@ -7,9 +7,9 @@ import ( "os/signal" "time" - "git.faercol.me/faercol/go-mod-template/template/config" - "git.faercol.me/faercol/go-mod-template/template/logger" - "git.faercol.me/faercol/go-mod-template/template/server" + "git.faercol.me/faercol/http-boot-server/bootserver/config" + "git.faercol.me/faercol/http-boot-server/bootserver/logger" + "git.faercol.me/faercol/http-boot-server/bootserver/server" ) const stopTimeout = 10 * time.Second diff --git a/template/server/server.go b/bootserver/server/server.go similarity index 97% rename from template/server/server.go rename to bootserver/server/server.go index 9b9ac5b..143f930 100644 --- a/template/server/server.go +++ b/bootserver/server/server.go @@ -8,7 +8,7 @@ import ( "net/http" "os" - "git.faercol.me/faercol/go-mod-template/template/config" + "git.faercol.me/faercol/http-boot-server/bootserver/config" "github.com/sirupsen/logrus" )