github.com/v2pro/plz@v0.0.0-20221028024117-e5f9aec5b631/witch/viewer/main.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/v2pro/plz/witch"
     5  	"os"
     6  )
     7  
     8  func main() {
     9  	addr := os.Getenv("WITCH_VIEWER")
    10  	if addr == "" {
    11  		addr = ":8318"
    12  	}
    13  	witch.StartViewer(addr)
    14  }