From b870c6c938a22b986671cbe4bf0dcf854b6794ab Mon Sep 17 00:00:00 2001 From: Timersha <> Date: Mon, 14 Oct 2024 21:06:49 +0300 Subject: [PATCH] HW1 is completed --- hw01_hello_otus/go.mod | 4 +++- hw01_hello_otus/go.sum | 2 ++ hw01_hello_otus/main.go | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 hw01_hello_otus/go.sum diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index bf7b900..cd9c64e 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/timersha/hw01_hello_otus go 1.22 + +require golang.org/x/example/hello v0.0.0-20240925201653-1a5e218e5455 diff --git a/hw01_hello_otus/go.sum b/hw01_hello_otus/go.sum new file mode 100644 index 0000000..cdc0bef --- /dev/null +++ b/hw01_hello_otus/go.sum @@ -0,0 +1,2 @@ +golang.org/x/example/hello v0.0.0-20240925201653-1a5e218e5455 h1:M97qpAJu3kht1X9fBEBQkDpZ6gpvvv1zkcRSnJuu7Oc= +golang.org/x/example/hello v0.0.0-20240925201653-1a5e218e5455/go.mod h1:UhUKOXx5fMcLZxwL20DUrWWBBoRYG9Jvc8FiwZhRHCI= diff --git a/hw01_hello_otus/main.go b/hw01_hello_otus/main.go index 1eca213..8b2a456 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -1,5 +1,11 @@ package main +import ( + "fmt" + + "golang.org/x/example/hello/reverse" +) + func main() { - // Place your code here. + fmt.Println(reverse.String("Hello, OTUS!")) }