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!")) }