mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-20 22:49:36 +08:00
Created server and client sub-folders
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,4 @@
|
|||||||
bin
|
bin
|
||||||
|
*key
|
||||||
|
*crt
|
||||||
|
*csr
|
18
Makefile
18
Makefile
@@ -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
7
client/main.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Let's build the client!")
|
||||||
|
}
|
7
main.go
7
main.go
@@ -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
9
server/main.go
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Let's build the server!")
|
||||||
|
}
|
Reference in New Issue
Block a user