diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index b9597d7..89925eb 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -2,4 +2,4 @@ module github.com/DimVlas/otus_hw/hw01_hello_otus go 1.22 -require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 +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 index e7ad2ce..cdc0bef 100644 --- a/hw01_hello_otus/go.sum +++ b/hw01_hello_otus/go.sum @@ -1,2 +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= +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 7cc3f05..a9574e2 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -3,11 +3,11 @@ package main import ( "fmt" - stringutil "golang.org/x/example/stringutil" + reverse "golang.org/x/example/hello/reverse" ) const HelloStr string = "Hello, OTUS!" func main() { - fmt.Println(stringutil.Reverse(HelloStr)) + fmt.Println(reverse.String(HelloStr)) }