OSDN Git Service

inline open browser utility method (#510)
authorYongfeng LI <wliyongfeng@gmail.com>
Mon, 2 Apr 2018 03:02:12 +0000 (11:02 +0800)
committerPaladz <yzhu101@uottawa.ca>
Mon, 2 Apr 2018 03:02:12 +0000 (11:02 +0800)
node/node.go
util/browser/browser.go [deleted file]

index 94474ae..d8bdaa5 100755 (executable)
@@ -12,6 +12,7 @@ import (
        "github.com/tendermint/go-wire"
        cmn "github.com/tendermint/tmlibs/common"
        dbm "github.com/tendermint/tmlibs/db"
+       browser "github.com/toqueteos/webbrowser"
 
        "github.com/bytom/accesstoken"
        "github.com/bytom/account"
@@ -27,7 +28,6 @@ import (
        "github.com/bytom/p2p"
        "github.com/bytom/protocol"
        "github.com/bytom/types"
-       "github.com/bytom/util/browser"
        "github.com/bytom/version"
        w "github.com/bytom/wallet"
 )
diff --git a/util/browser/browser.go b/util/browser/browser.go
deleted file mode 100644 (file)
index b57acde..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-package browser
-
-import (
-       "github.com/toqueteos/webbrowser"
-)
-
-// Open opens browser
-func Open(url string) error {
-       return webbrowser.Open(url)
-}