mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-19 07:25:27 +02:00
14 lines
205 B
Go
14 lines
205 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
func Dedent(s string) string {
|
|
return strings.TrimLeft(s, "\n")
|
|
}
|
|
|
|
func KeyExists[T comparable, V any](keys map[T]V, key T) bool {
|
|
_, found := keys[key]
|
|
|
|
return found
|
|
}
|