From 704b91ca02f87fe0f6d3e059aa2aeb8e3e823c14 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Dec 2020 15:30:20 +0100 Subject: Rename `fmtBrowserCommand()` to `escapeBrowserCommand()` Formatting the browser command will incorporate more steps, not just this one, so rename it to be more specific about what it's doing. I want to use the other name for a different function. --- browserenv_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'browserenv_unix.go') diff --git a/browserenv_unix.go b/browserenv_unix.go index e6416f8..d2f9538 100644 --- a/browserenv_unix.go +++ b/browserenv_unix.go @@ -19,7 +19,7 @@ func shell() (args []string) { } // TODO -func fmtBrowserCommand(browser, url string) string { +func escapeBrowserCommand(browser, url string) string { // TODO: handle %s in browser command return fmt.Sprintf("%s '%s'", browser, url) } -- cgit v1.2.3