Code snippets with tests and testable examples for the Go programming language
package main import ( "fmt" "strings" ) func Example() { fmt.Println(strings.HasSuffix("abcdefg", "fg")) fmt.Println(strings.HasSuffix("abcdefg", "Fg")) // Output: // true // false }
by psampaz - source code - comment below or here