[PD1] Innitial commit
This commit is contained in:
parent
287ae0e466
commit
c0e19b5774
10 changed files with 71 additions and 0 deletions
11
Projs/PD1/README.md
Normal file
11
Projs/PD1/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Structure
|
||||
|
||||
### Server:
|
||||
- data_management
|
||||
|
||||
### Client:
|
||||
- interface
|
||||
|
||||
### Libs
|
||||
- crypto
|
||||
- networking
|
1
Projs/PD1/client/client.go
Normal file
1
Projs/PD1/client/client.go
Normal file
|
@ -0,0 +1 @@
|
|||
package client
|
1
Projs/PD1/client/interface.go
Normal file
1
Projs/PD1/client/interface.go
Normal file
|
@ -0,0 +1 @@
|
|||
package client
|
3
Projs/PD1/go.mod
Normal file
3
Projs/PD1/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module PD1
|
||||
|
||||
go 1.22.2
|
1
Projs/PD1/server/datastore.go
Normal file
1
Projs/PD1/server/datastore.go
Normal file
|
@ -0,0 +1 @@
|
|||
package server
|
17
Projs/PD1/server/server.go
Normal file
17
Projs/PD1/server/server.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
_ "PD1/utils/networking"
|
||||
_ "PD1/utils/crypto"
|
||||
)
|
||||
|
||||
const (
|
||||
a = iota
|
||||
b
|
||||
c
|
||||
d
|
||||
e
|
||||
)
|
||||
|
||||
func main() {
|
||||
}
|
18
Projs/PD1/tokefile.toml
Normal file
18
Projs/PD1/tokefile.toml
Normal file
|
@ -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"
|
7
Projs/PD1/utils/crypto/crypto.go
Normal file
7
Projs/PD1/utils/crypto/crypto.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package crypto
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Print(){
|
||||
fmt.Println("crypto package")
|
||||
}
|
7
Projs/PD1/utils/networking/networking.go
Normal file
7
Projs/PD1/utils/networking/networking.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package networking
|
||||
|
||||
import "fmt"
|
||||
|
||||
func Print(){
|
||||
fmt.Println("networking package")
|
||||
}
|
5
Projs/PD1/utils/protocol/protocol.go
Normal file
5
Projs/PD1/utils/protocol/protocol.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package protocol
|
||||
|
||||
type message struct{
|
||||
|
||||
}
|
Loading…
Reference in a new issue