From 6a30f21cb557c71480343f02f5f8aa9d4e3f6a88 Mon Sep 17 00:00:00 2001 From: DimVlas Date: Sat, 30 Mar 2024 20:09:06 +0300 Subject: [PATCH 1/5] HW1 is completed --- hw01_hello_otus/go.mod | 6 ++++-- hw01_hello_otus/go.sum | 2 ++ hw01_hello_otus/main.go | 12 +++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 hw01_hello_otus/go.sum diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index 5ee66b4..33b6d1b 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -1,3 +1,5 @@ -module github.com/fixme_my_friend/hw01_hello_otus +module github.com/DimVlas/hw01_hello_otus -go 1.19 +go 1.22.1 + +require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 diff --git a/hw01_hello_otus/go.sum b/hw01_hello_otus/go.sum new file mode 100644 index 0000000..e7ad2ce --- /dev/null +++ b/hw01_hello_otus/go.sum @@ -0,0 +1,2 @@ +golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 h1:KSJNczWPMSIv4ElerdzbAYkA2HtgIW7V5W/CV1WZbto= +golang.org/x/example v0.0.0-20230731131755-00c7068f9d83/go.mod h1:KFX5xa4DwLf1GiLuHJgXnyZXDMwGCCRuKM9Z0r1oAsY= diff --git a/hw01_hello_otus/main.go b/hw01_hello_otus/main.go index 1eca213..8d838ac 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -1,5 +1,15 @@ package main +import ( + "fmt" + + stringutil "golang.org/x/example/stringutil" +) + +const ( + HelloStr string = "Hello, OTUS!" +) + func main() { - // Place your code here. + fmt.Println(stringutil.Reverse(HelloStr)) } From 7c74b05ad0632978a4c38d23fc69596eb7b4258b Mon Sep 17 00:00:00 2001 From: DimVlas Date: Sat, 30 Mar 2024 20:17:18 +0300 Subject: [PATCH 2/5] HW1 is completed --- hw01_hello_otus/.sync | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 hw01_hello_otus/.sync diff --git a/hw01_hello_otus/.sync b/hw01_hello_otus/.sync deleted file mode 100644 index e69de29..0000000 From 2dcd45754d87c6325eab4e652a926380cb065812 Mon Sep 17 00:00:00 2001 From: DimVlas Date: Sat, 30 Mar 2024 20:25:48 +0300 Subject: [PATCH 3/5] HW1 is completed --- hw01_hello_otus/go.mod | 2 +- hw01_hello_otus/main.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index 33b6d1b..e73cf6a 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -1,5 +1,5 @@ module github.com/DimVlas/hw01_hello_otus -go 1.22.1 +go 1.22 require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 diff --git a/hw01_hello_otus/main.go b/hw01_hello_otus/main.go index 8d838ac..7cc3f05 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -6,9 +6,7 @@ import ( stringutil "golang.org/x/example/stringutil" ) -const ( - HelloStr string = "Hello, OTUS!" -) +const HelloStr string = "Hello, OTUS!" func main() { fmt.Println(stringutil.Reverse(HelloStr)) From 98c6239926ae94901a59958641cb54366145dab2 Mon Sep 17 00:00:00 2001 From: DimVlas Date: Sat, 30 Mar 2024 20:27:40 +0300 Subject: [PATCH 4/5] HW1 is completed --- hw01_hello_otus/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index e73cf6a..b45203d 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -1,5 +1,5 @@ module github.com/DimVlas/hw01_hello_otus -go 1.22 +go 1.19 require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 From 7862bb280a869031521e60e1e55c1b2ac4c08fc6 Mon Sep 17 00:00:00 2001 From: DimVlas <67095598+DimVlas@users.noreply.github.com> Date: Sun, 31 Mar 2024 20:01:49 +0300 Subject: [PATCH 5/5] Update hw01_hello_otus/go.mod Co-authored-by: Artyom Kartasov --- hw01_hello_otus/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index b45203d..de45ce0 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -1,4 +1,4 @@ -module github.com/DimVlas/hw01_hello_otus +module github.com/DimVlas/otus_hw/hw01_hello_otus go 1.19