diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..249a35b --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/DaAyupov21/home_work + +go 1.24.6 diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index 513926b..abda225 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/DaAyupov21/hw01_hello_otus go 1.23 + +require golang.org/x/example/hello v0.0.0-20250915201037-7f05d217867b diff --git a/hw01_hello_otus/go.sum b/hw01_hello_otus/go.sum new file mode 100644 index 0000000..d75c88b --- /dev/null +++ b/hw01_hello_otus/go.sum @@ -0,0 +1,2 @@ +golang.org/x/example/hello v0.0.0-20250915201037-7f05d217867b h1:+gZE2jOdiscYByu0606Uw8Ldir2Cecd39Vq/3IEasRA= +golang.org/x/example/hello v0.0.0-20250915201037-7f05d217867b/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!")) }