Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CMD = &cobra.Command{ Use: "view", Short: "serve the embedded web UI", RunE: func(cmd *cobra.Command, args []string) error { fileServer, err := NewWebServer() if err != nil { return err } http.Handle("/", fileServer) addr := ":" + port slog.Info("Open webui on http://localhost" + addr) return http.ListenAndServe(addr, nil) }, }
Functions ¶
func NewWebServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.