51 Star 265 Fork 59

bitepeng / b0pass

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
cli.go 556 Bytes
Copy Edit Web IDE Raw Blame History
package main
import (
"b0pass/boot"
_ "b0pass/boot"
"b0pass/library/ipaddress"
"b0pass/library/openurl"
_ "b0pass/router"
"fmt"
"github.com/gogf/gf/frame/g"
"strconv"
"time"
)
func main() {
//Cli Args
boot.ExecArgs()
ipArr,_:=ipaddress.GetIP()
fmt.Printf("[ServerUrl] http://127.0.0.1:%d\n",boot.ServPort)
fmt.Printf("[IPlistArr] %v\n",ipArr)
fmt.Printf("[Work-Path] %s\n",boot.PathRoot)
//Open Urls
go func() {
time.Sleep(4000 * time.Millisecond)
_ = openurl.Open("http://127.0.0.1:" + strconv.Itoa(boot.ServPort))
}()
g.Wait()
}

Comment ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/b0cloud/b0pass.git
git@gitee.com:b0cloud/b0pass.git
b0cloud
b0pass
b0pass
master

Search

153430 a91d09cc 1899542 180418 42a90fc8 1899542