diff options
| author | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:03:54 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <jeroen.wijenbergh@geant.org> | 2026-02-12 12:03:54 +0100 |
| commit | b00ce8214479c50e137db73c77b0cc1393c5e7d4 (patch) | |
| tree | 5b5421728e91645ce5e44980f13029ad590a53ad /cmd/eduvpn-cli | |
| parent | fd7abf186da1895e20dd2fdb2e8a1406e60081d7 (diff) | |
All: Run modernize --test --fix
Diffstat (limited to 'cmd/eduvpn-cli')
| -rw-r--r-- | cmd/eduvpn-cli/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/eduvpn-cli/main.go b/cmd/eduvpn-cli/main.go index 2a8ffc1..bb90e40 100644 --- a/cmd/eduvpn-cli/main.go +++ b/cmd/eduvpn-cli/main.go @@ -35,17 +35,17 @@ func openBrowser(data any) { func getProfileInteractive(profiles *srvtypes.Profiles, data any) (string, error) { fmt.Printf("Multiple VPN profiles found. Please select a profile by entering e.g. 1") - ps := "" + var ps strings.Builder var options []string i := 0 for k, v := range profiles.Map { - ps += fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en")) + ps.WriteString(fmt.Sprintf("\n%d - %s", i+1, i18n.GetLanguageMatched(v.DisplayName, "en"))) options = append(options, k) i++ } // Show the profiles - fmt.Println(ps) + fmt.Println(ps.String()) var idx int if _, err := fmt.Scanf("%d", &idx); err != nil || idx <= 0 || |
