mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
12 lines
175 B
Go
12 lines
175 B
Go
package utils
|
|
|
|
func Dedent(s string) string {
|
|
return s[len("\n"):]
|
|
}
|
|
|
|
func KeyExists[T comparable, V any](keys map[T]V, key T) bool {
|
|
_, found := keys[key]
|
|
|
|
return found
|
|
}
|