diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index 5ee66b4..33b6d1b 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/DimVlas/hw01_hello_otus -go 1.19 +go 1.22.1 + +require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 diff --git a/hw01_hello_otus/go.sum b/hw01_hello_otus/go.sum new file mode 100644 index 0000000..e7ad2ce --- /dev/null +++ b/hw01_hello_otus/go.sum @@ -0,0 +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= diff --git a/hw01_hello_otus/main.go b/hw01_hello_otus/main.go index 1eca213..8d838ac 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -1,5 +1,15 @@ package main +import ( + "fmt" + + stringutil "golang.org/x/example/stringutil" +) + +const ( + HelloStr string = "Hello, OTUS!" +) + func main() { - // Place your code here. + fmt.Println(stringutil.Reverse(HelloStr)) }