Files
weave-scope/prog/static.go
Mike Lang 2c9f6c197f Split prog/static.go into two versions, and have a shim choose between them
This allows us to have both normal and external resource versions of static content
in the same binary, and switch with a flag
2016-10-05 17:26:57 -07:00

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)
}
}