diff --git a/hw01_hello_otus/go.mod b/hw01_hello_otus/go.mod index 33b6d1b..e73cf6a 100644 --- a/hw01_hello_otus/go.mod +++ b/hw01_hello_otus/go.mod @@ -1,5 +1,5 @@ module github.com/DimVlas/hw01_hello_otus -go 1.22.1 +go 1.22 require golang.org/x/example v0.0.0-20230731131755-00c7068f9d83 diff --git a/hw01_hello_otus/main.go b/hw01_hello_otus/main.go index 8d838ac..7cc3f05 100644 --- a/hw01_hello_otus/main.go +++ b/hw01_hello_otus/main.go @@ -6,9 +6,7 @@ import ( stringutil "golang.org/x/example/stringutil" ) -const ( - HelloStr string = "Hello, OTUS!" -) +const HelloStr string = "Hello, OTUS!" func main() { fmt.Println(stringutil.Reverse(HelloStr))