mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
This allows us to have both normal and external resource versions of static content in the same binary, and switch with a flag
17 lines
271 B
Go
17 lines
271 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/weaveworks/scope/prog/staticui"
|
|
"github.com/weaveworks/scope/prog/externalui"
|
|
)
|
|
|
|
func GetFS(use_external bool) http.FileSystem {
|
|
if use_external {
|
|
return externalui.FS(false)
|
|
} else {
|
|
return staticui.FS(false)
|
|
}
|
|
}
|