Checks if a string ends with a specific suffix.
1 2
printf("%t\n", strings.endsWith("hello world", "world")) // true printf("%t\n", strings.endsWith("hello world", "hello")) // false