commandNameMatches checks if two command names are equal taking into account case sensitivity according to EnableCaseInsensitive global configuration.
(s string, t string)
| 1926 | // taking into account case sensitivity according to |
| 1927 | // EnableCaseInsensitive global configuration. |
| 1928 | func commandNameMatches(s string, t string) bool { |
| 1929 | if EnableCaseInsensitive { |
| 1930 | return strings.EqualFold(s, t) |
| 1931 | } |
| 1932 | |
| 1933 | return s == t |
| 1934 | } |
| 1935 | |
| 1936 | // tmplFunc holds a template and a function that will execute said template. |
| 1937 | type tmplFunc struct { |