diff --git a/eureka.go b/eureka.go index bfde565..989c0c4 100644 --- a/eureka.go +++ b/eureka.go @@ -85,6 +85,7 @@ func promptKey() (string, error) { return "", fmt.Errorf("couldn't read the key: %s", err) } + key = strings.TrimSpace(key) return key, nil }