Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# 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)
Goal:
Use correctly basic tooling of the Golang.

Practical assigment destributed acroos the branches `lecture-*`
Task:

We use platform [Autocode](https://autocode-next.lab.epam.com) to track the homework, please use it to complete tasks.
* Initialize project with Go modules
* Add dependency "github.com/kyokomi/emoji"
* Add emoji into the string
* Using Sprint function from current package build a message "Hello 🗺️!"

## 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
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module lecture00

go 1.18

require github.com/kyokomi/emoji v2.2.4+incompatible // indirect
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package solution

func main() {

}
9 changes: 9 additions & 0 deletions solution.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package solution

import (
"github.com/kyokomi/emoji"
)

func GetMessage() string {
return emoji.Sprint("Hello :world_map:!")
}
13 changes: 13 additions & 0 deletions solution_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package solution

import (
"testing"
)

func TestGetMessage(t *testing.T) {
want := "Hello 🗺️ !"
res := GetMessage()
if want != res {
t.Errorf("GetMessage = %v, want = %v", res, want)
}
}