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)