From f0ff06b01f5b44d8734e81bc0a4df7c845e5f752 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Mon, 30 May 2022 11:52:30 +0200 Subject: [PATCH] create second part of lab --- Lab04/code/part01-analyze/go.mod | 2 +- Lab04/code/part01-analyze/makefile | 2 +- Lab04/code/part01-encrypt/go.mod | 3 +++ Lab04/code/part01-encrypt/go.sum | 0 Lab04/code/part01-encrypt/main.go | 7 +++++++ Lab04/code/part01-encrypt/makefile | 17 +++++++++++++++++ 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 Lab04/code/part01-encrypt/go.mod create mode 100644 Lab04/code/part01-encrypt/go.sum create mode 100644 Lab04/code/part01-encrypt/main.go create mode 100644 Lab04/code/part01-encrypt/makefile diff --git a/Lab04/code/part01-analyze/go.mod b/Lab04/code/part01-analyze/go.mod index 66a5324..fd5752b 100644 --- a/Lab04/code/part01-analyze/go.mod +++ b/Lab04/code/part01-analyze/go.mod @@ -1,4 +1,4 @@ -module frequency +module analyze go 1.18 diff --git a/Lab04/code/part01-analyze/makefile b/Lab04/code/part01-analyze/makefile index 97fb1c3..782b893 100644 --- a/Lab04/code/part01-analyze/makefile +++ b/Lab04/code/part01-analyze/makefile @@ -4,7 +4,7 @@ GoBUILD=$(GoCMD) build GoCLEAN=$(GoCMD) clean GoTEST=$(GoCMD) test GoMOD=$(GoCMD) mod -BINARY_NAME=frequency +BINARY_NAME=tool # To install GoLang please follow the installation instructions on https://go.dev/ all: build diff --git a/Lab04/code/part01-encrypt/go.mod b/Lab04/code/part01-encrypt/go.mod new file mode 100644 index 0000000..783593c --- /dev/null +++ b/Lab04/code/part01-encrypt/go.mod @@ -0,0 +1,3 @@ +module encrypt + +go 1.18 diff --git a/Lab04/code/part01-encrypt/go.sum b/Lab04/code/part01-encrypt/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/Lab04/code/part01-encrypt/main.go b/Lab04/code/part01-encrypt/main.go new file mode 100644 index 0000000..f3ae387 --- /dev/null +++ b/Lab04/code/part01-encrypt/main.go @@ -0,0 +1,7 @@ +package main + +import ( +) + +func main() { +} diff --git a/Lab04/code/part01-encrypt/makefile b/Lab04/code/part01-encrypt/makefile new file mode 100644 index 0000000..782b893 --- /dev/null +++ b/Lab04/code/part01-encrypt/makefile @@ -0,0 +1,17 @@ +# Go parameters +GoCMD=go +GoBUILD=$(GoCMD) build +GoCLEAN=$(GoCMD) clean +GoTEST=$(GoCMD) test +GoMOD=$(GoCMD) mod +BINARY_NAME=tool + +# To install GoLang please follow the installation instructions on https://go.dev/ +all: build +build: + $(GoBUILD) -o $(BINARY_NAME) -v +clean: + $(GOCLEAN) + rm -f $(BINARY_NAME) +deps: + $(GoMOD) tidy \ No newline at end of file