From be7ac7ee7038b9c5e02b0e9cd27cd98eda979d0d Mon Sep 17 00:00:00 2001 From: Mohamed Zaboub <45185441+mohamedLazyBob@users.noreply.github.com> Date: Thu, 9 Jun 2022 22:34:07 +0100 Subject: [PATCH] add(subjects): issamestring subject --- subjects/issamestring/README.md | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 subjects/issamestring/README.md diff --git a/subjects/issamestring/README.md b/subjects/issamestring/README.md new file mode 100644 index 000000000..cb36c52b5 --- /dev/null +++ b/subjects/issamestring/README.md @@ -0,0 +1,43 @@ +## issamestring + +### Instructions + +Write a function that returns `true` if the two `strings` passed as parameter are equal. Otherwise it returns `false`. + +The function will ignore the case of the characters. + +### Expected function + +```go +func IsSameString(s1, s2 string) bool { + +} +``` + +### Usage + +Here is a possible program to test your function : + +```go +package main + +import ( + "fmt" + "piscine" +) + +func main() { + fmt.Println(piscine.IsSameString("hello world!", "HELLO WORLD!")) + fmt.Println(piscine.IsSameString("0101 is awesome", "0101 is AWESOME")) + fmt.Println(piscine.IsSameString("foo baz", "foo bar")) +} +``` + +And its output : + +```console +$ go run . +true +true +false +```