diff --git a/Projs/PD1/README.md b/Projs/PD1/README.md new file mode 100644 index 0000000..fe32202 --- /dev/null +++ b/Projs/PD1/README.md @@ -0,0 +1,11 @@ +# Structure + +### Server: +- data_management + +### Client: +- interface + +### Libs +- crypto +- networking diff --git a/Projs/PD1/client/client.go b/Projs/PD1/client/client.go new file mode 100644 index 0000000..da13c8e --- /dev/null +++ b/Projs/PD1/client/client.go @@ -0,0 +1 @@ +package client diff --git a/Projs/PD1/client/interface.go b/Projs/PD1/client/interface.go new file mode 100644 index 0000000..da13c8e --- /dev/null +++ b/Projs/PD1/client/interface.go @@ -0,0 +1 @@ +package client diff --git a/Projs/PD1/go.mod b/Projs/PD1/go.mod new file mode 100644 index 0000000..bdfb4f4 --- /dev/null +++ b/Projs/PD1/go.mod @@ -0,0 +1,3 @@ +module PD1 + +go 1.22.2 diff --git a/Projs/PD1/server/datastore.go b/Projs/PD1/server/datastore.go new file mode 100644 index 0000000..abb4e43 --- /dev/null +++ b/Projs/PD1/server/datastore.go @@ -0,0 +1 @@ +package server diff --git a/Projs/PD1/server/server.go b/Projs/PD1/server/server.go new file mode 100644 index 0000000..a4f679e --- /dev/null +++ b/Projs/PD1/server/server.go @@ -0,0 +1,17 @@ +package server + +import ( + _ "PD1/utils/networking" + _ "PD1/utils/crypto" +) + +const ( + a = iota + b + c + d + e +) + +func main() { +} diff --git a/Projs/PD1/tokefile.toml b/Projs/PD1/tokefile.toml new file mode 100644 index 0000000..9f6056e --- /dev/null +++ b/Projs/PD1/tokefile.toml @@ -0,0 +1,18 @@ +[targets.setup] +wildcards=[["golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@latest","github.com/kisielk/errcheck@latest"]] +cmd="go install @@" + +[targets.check] +wildcards=[["go vet ./...","shadow ./...","errcheck ./..."]] +cmd="@@" + +[targets.build] +cmd="go build" + +[targets.server] +deps=["check"] +cmd="go run ./src/server/server.go" + +[targets.client] +deps=["check"] +cmd="go run ./src/server/client.go" diff --git a/Projs/PD1/utils/crypto/crypto.go b/Projs/PD1/utils/crypto/crypto.go new file mode 100644 index 0000000..87fbfb8 --- /dev/null +++ b/Projs/PD1/utils/crypto/crypto.go @@ -0,0 +1,7 @@ +package crypto + +import "fmt" + +func Print(){ + fmt.Println("crypto package") +} diff --git a/Projs/PD1/utils/networking/networking.go b/Projs/PD1/utils/networking/networking.go new file mode 100644 index 0000000..8b16708 --- /dev/null +++ b/Projs/PD1/utils/networking/networking.go @@ -0,0 +1,7 @@ +package networking + +import "fmt" + +func Print(){ + fmt.Println("networking package") +} diff --git a/Projs/PD1/utils/protocol/protocol.go b/Projs/PD1/utils/protocol/protocol.go new file mode 100644 index 0000000..58c7556 --- /dev/null +++ b/Projs/PD1/utils/protocol/protocol.go @@ -0,0 +1,5 @@ +package protocol + +type message struct{ + +}