Skip to content

Commit

Permalink
[HW1] Create module with reversed string (#2)
Browse files Browse the repository at this point in the history
* HW1 create simple module with reversed string

* Remove sync file
  • Loading branch information
bimboterminator1 authored Aug 7, 2024
1 parent 571f04e commit af6dfba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Empty file removed hw01_hello_otus/.sync
Empty file.
4 changes: 3 additions & 1 deletion hw01_hello_otus/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/fixme_my_friend/hw01_hello_otus
module github.com/bimboterminator1/otus_hwgo/hw01_hello_otus

go 1.22

require golang.org/x/example/hello v0.0.0-20240716161537-39e772fc2670
2 changes: 2 additions & 0 deletions hw01_hello_otus/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
golang.org/x/example/hello v0.0.0-20240716161537-39e772fc2670 h1:HLz1bLmabrNKLWKNuWfNNJK+vMnBF2WGY0dLWYQQL5E=
golang.org/x/example/hello v0.0.0-20240716161537-39e772fc2670/go.mod h1:UhUKOXx5fMcLZxwL20DUrWWBBoRYG9Jvc8FiwZhRHCI=
8 changes: 7 additions & 1 deletion hw01_hello_otus/main.go
Original file line number Diff line number Diff line change
@@ -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!"))
}

0 comments on commit af6dfba

Please sign in to comment.