Skip to content

Commit

Permalink
Merge pull request #33 from cybertec-postgresql/32-use-embed-package-…
Browse files Browse the repository at this point in the history
…to-serve-webui-files

[+] use `embed` package to serve webui files, closes #32
  • Loading branch information
pashagolub authored Jun 23, 2022
2 parents 71832fa + 203cbc2 commit dbe619b
Show file tree
Hide file tree
Showing 33 changed files with 26,711 additions and 9 deletions.
7 changes: 6 additions & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4912,7 +4912,12 @@ var opts Options

func main() {

_ = webui.Init(":8080")
ui := webui.Init(":8080")
fmt.Println("Press the Enter Key to stop anytime")
fmt.Scanln()
if ui != nil {
return
}

var err error
parser := flags.NewParser(&opts, flags.Default)
Expand Down
Loading

0 comments on commit dbe619b

Please sign in to comment.