diff --git a/README.md b/README.md index 8ee04cff..ce8b891a 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,11 @@ -# Golang united school - part 1 +# Introduction task -Inside of this repository you can find all homeworks for the first part of the [Golang united school](https://community-z.com/communities/golang/golang-united-school) +The purpose of this task is to figure out how to use basic tooling of the Golang as well as check your IDE setup. -Practical assigment destributed acroos the branches `lecture-*` +Task: +* Initialize project with Go modules +* Add dependency "github.com/kyokomi/emoji" to add emojy into the string +* Using Sprint function from this package build a message "Hello 🗺️!" -We use platform [Autocode](https://autocode-next.lab.epam.com) to track the homework, please use it to complete tasks. - -## How to use `Autocode`? -To use autocode you must be registered on the platform (please specify your real name). -After registration, please authorize the platform to use your `github` account, platform will automatically fork the repo to your account when you start task. - -You might code in any IDEA or TextEditor for the development, to sumbit the code you just need to commit it to the specific branch, after that you will have an ability to submit code on the platform and get all test results. - -Good Luck! +To run tests for run cmd "go test -v ." +Tasks considered as completed in case test is not failed diff --git a/go.mod b/go.mod new file mode 100644 index 00000000..9cbf4c6a --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/iRootPro/golang-united-school-homework-1 + +go 1.18 + +require github.com/kyokomi/emoji v2.2.4+incompatible // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 00000000..b4d9b182 --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/kyokomi/emoji v2.2.4+incompatible h1:np0woGKwx9LiHAQmwZx79Oc0rHpNw3o+3evou4BEPv4= +github.com/kyokomi/emoji v2.2.4+incompatible/go.mod h1:mZ6aGCD7yk8j6QY6KICwnZ2pxoszVseX1DNoGtU2tBA= diff --git a/solution.go b/solution.go new file mode 100644 index 00000000..0e46d119 --- /dev/null +++ b/solution.go @@ -0,0 +1,7 @@ +package solution + +import "fmt" + +func GetMessage() string { + return fmt.Sprint("Hello :world_map:!") +}