public/subjects/issamestring
miguel 4974a86b84 docs(checkpoints-exercises): remove piscine imports 2023-07-04 15:43:17 +01:00
..
README.md docs(checkpoints-exercises): remove piscine imports 2023-07-04 15:43:17 +01:00

README.md

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

func IsSameString(s1, s2 string) bool {

}

Usage

Here is a possible program to test your function:

package main

import (
	"fmt"
)

func main() {
	fmt.Println(IsSameString("hello world!", "HELLO WORLD!"))
	fmt.Println(IsSameString("0101 is awesome", "0101 is AWESOME"))
	fmt.Println(IsSameString("foo baz", "foo bar"))
}

And its output:

$  go run .
true
true
false