From c8cc1564569ed101879c6b7ddd2c8a41b7a8a6a0 Mon Sep 17 00:00:00 2001 From: Kelvin Clement Mwinuka Date: Sat, 17 Jun 2023 21:31:13 +0800 Subject: [PATCH] Created server and client sub-folders --- .gitignore | 5 ++++- Makefile | 18 +++++++++++++----- client/main.go | 7 +++++++ main.go | 7 ------- server/main.go | 9 +++++++++ 5 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 client/main.go delete mode 100644 main.go create mode 100644 server/main.go diff --git a/.gitignore b/.gitignore index c5e82d7..de6ac7c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -bin \ No newline at end of file +bin +*key +*crt +*csr \ No newline at end of file diff --git a/Makefile b/Makefile index acaae34..707cbc1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ -build: - go build -o bin/main main.go +build-server: + go build -o bin/server server/main.go -run: - ./bin/main +build-client: + go build -o bin/client client/main.go -all: build run \ No newline at end of file +run-server: + ./bin/server + +run-client: + ./bin/client + +server: build-server run-server + +client: build-client run-client \ No newline at end of file diff --git a/client/main.go b/client/main.go new file mode 100644 index 0000000..2e53a20 --- /dev/null +++ b/client/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Let's build the client!") +} diff --git a/main.go b/main.go deleted file mode 100644 index d15a6b1..0000000 --- a/main.go +++ /dev/null @@ -1,7 +0,0 @@ -package main - -import "fmt" - -func main() { - fmt.Println("This is the beginning of an awesome project!") -} diff --git a/server/main.go b/server/main.go new file mode 100644 index 0000000..fca2bd6 --- /dev/null +++ b/server/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("Let's build the server!") +}