mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
18 lines
298 B
Go
18 lines
298 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/weaveworks/scope/prog/externalui"
|
|
"github.com/weaveworks/scope/prog/staticui"
|
|
)
|
|
|
|
// GetFS obtains the UI code
|
|
func GetFS(useExternal bool) http.FileSystem {
|
|
if useExternal {
|
|
return externalui.FS(false)
|
|
} else {
|
|
return staticui.FS(false)
|
|
}
|
|
}
|