From 96f298ae27cda6cb9965beb27c2c4fafb38cd64a Mon Sep 17 00:00:00 2001 From: olya2209 Date: Mon, 4 Nov 2024 22:17:02 +0300 Subject: [PATCH] hw1 - done --- hw01_hello_otus/go.mod | 6 ++++-- hw01_hello_otus/go.sum | 2 ++ hw01_hello_otus/main.go | 8 +++++++- 3 files changed, 13 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 bf7b900..6edb5db 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/olya2209/hw_otus -go 1.22 +go 1.23.2 + +require golang.org/x/example/hello v0.0.0-20241014184706-d7b0ac127859 diff --git a/hw01_hello_otus/go.sum b/hw01_hello_otus/go.sum new file mode 100644 index 0000000..8d63824 --- /dev/null +++ b/hw01_hello_otus/go.sum @@ -0,0 +1,2 @@ +golang.org/x/example/hello v0.0.0-20241014184706-d7b0ac127859 h1:b1VUlwfZzs4kVS1ATswh6ugpOLEdbyIVOKwIk6zMiHw= +golang.org/x/example/hello v0.0.0-20241014184706-d7b0ac127859/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!")) }