From 6bbd57e8481cba6b101ab7bee726284c81d7f0f4 Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Wed, 3 May 2017 02:29:15 +0900 Subject: [PATCH] Rename xsearch -> xSearch --- cmd/mstdn/cmd_mikami.go | 2 +- cmd/mstdn/cmd_xsearch.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/mstdn/cmd_mikami.go b/cmd/mstdn/cmd_mikami.go index b46cc1f..abbfc18 100644 --- a/cmd/mstdn/cmd_mikami.go +++ b/cmd/mstdn/cmd_mikami.go @@ -5,5 +5,5 @@ import ( ) func cmdMikami(c *cli.Context) error { - return xsearch(c.App.Metadata["xsearch_url"].(string), "三上", c.App.Writer) + return xSearch(c.App.Metadata["xsearch_url"].(string), "三上", c.App.Writer) } diff --git a/cmd/mstdn/cmd_xsearch.go b/cmd/mstdn/cmd_xsearch.go index 92cef85..2c7950b 100644 --- a/cmd/mstdn/cmd_xsearch.go +++ b/cmd/mstdn/cmd_xsearch.go @@ -10,10 +10,10 @@ import ( ) func cmdXSearch(c *cli.Context) error { - return xsearch(c.App.Metadata["xsearch_url"].(string), c.Args().First(), c.App.Writer) + return xSearch(c.App.Metadata["xsearch_url"].(string), c.Args().First(), c.App.Writer) } -func xsearch(xsearchRawurl, query string, w io.Writer) error { +func xSearch(xsearchRawurl, query string, w io.Writer) error { u, err := url.Parse(xsearchRawurl) if err != nil { return err