From 5749ede4d3ea9d34b341dbf8c6782573f08c2c6c Mon Sep 17 00:00:00 2001 From: Aliaksei Burau Date: Mon, 31 Jan 2022 23:33:22 +0100 Subject: [PATCH 1/2] add introduction task --- README.md | 20 ++++++++------------ solution.go | 5 +++++ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 solution.go 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/solution.go b/solution.go new file mode 100644 index 00000000..0fc85416 --- /dev/null +++ b/solution.go @@ -0,0 +1,5 @@ +package solution + +func GetMessage() string { + return "" +} From d3ae5b4a00112f9c1c24d88cad8a45b7f79abec2 Mon Sep 17 00:00:00 2001 From: Alexander Neupokoev Date: Sat, 30 Apr 2022 16:03:55 +0300 Subject: [PATCH 2/2] 0 hw --- go.mod | 5 +++++ go.sum | 2 ++ solution.go | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 go.mod create mode 100644 go.sum 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 index 0fc85416..0e46d119 100644 --- a/solution.go +++ b/solution.go @@ -1,5 +1,7 @@ package solution +import "fmt" + func GetMessage() string { - return "" + return fmt.Sprint("Hello :world_map:!") }