endswith(str, suffix) returns true if str ends with suffix, and false otherwise.
Signature
Example
Skip the linter when the playbook is loaded outside of a Go project:Notes
- The comparison is case-sensitive. Use
loweron both arguments for a case-insensitive check. - Returns
falsewhensuffixis longer thanstr.