From 1e2534a048180462734ae35d93dae1060b9a368c Mon Sep 17 00:00:00 2001 From: alessio Date: Sun, 27 Aug 2017 14:39:37 +0200 Subject: [PATCH] lint --- server/open.go | 2 +- settings/utils.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/open.go b/server/open.go index 57cc62f..a343c24 100644 --- a/server/open.go +++ b/server/open.go @@ -20,7 +20,7 @@ func init() { } } -// Open a url in the default browser +// OpenURL is used for open an url in the default browser func (s *Server) OpenURL(url string) (io.Writer, error) { if s.Open { open, err := cmd[runtime.GOOS] diff --git a/settings/utils.go b/settings/utils.go index 62b570b..3aa9519 100644 --- a/settings/utils.go +++ b/settings/utils.go @@ -57,6 +57,7 @@ func (s Settings) Path(path string) string { return strings.Replace(filepath.Clean(path), "\\", "/", -1) } +// Rand is used for generate a random string func Rand(n int) string { src := rand.NewSource(time.Now().UnixNano()) b := make([]byte, n)