lint
This commit is contained in:
parent
2427562245
commit
1e2534a048
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue