Created server and client sub-folders

This commit is contained in:
Kelvin Clement Mwinuka
2023-06-17 21:31:13 +08:00
parent 4875124825
commit c8cc156456
5 changed files with 33 additions and 13 deletions

5
.gitignore vendored
View File

@@ -1 +1,4 @@
bin bin
*key
*crt
*csr

View File

@@ -1,7 +1,15 @@
build: build-server:
go build -o bin/main main.go go build -o bin/server server/main.go
run: build-client:
./bin/main go build -o bin/client client/main.go
all: build run run-server:
./bin/server
run-client:
./bin/client
server: build-server run-server
client: build-client run-client

7
client/main.go Normal file
View File

@@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Let's build the client!")
}

View File

@@ -1,7 +0,0 @@
package main
import "fmt"
func main() {
fmt.Println("This is the beginning of an awesome project!")
}

9
server/main.go Normal file
View File

@@ -0,0 +1,9 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("Let's build the server!")
}